build: add maintainer flags for various warnings.
examples: remove unneeded variable.