]> git.tuebingen.mpg.de Git - paraslash.git/commit
Don't compile files generated by gengetopt with -Wall.
authorAndre Noll <maan@systemlinux.org>
Mon, 28 Mar 2011 22:00:23 +0000 (00:00 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 28 Mar 2011 22:00:23 +0000 (00:00 +0200)
commitc7269c6960a0f67fcd3f5c9b5bbaad53824d0ae9
treeeb54a821ce90b91ea1321d43eea24af3487b8bd1
parent5108187205ed65883d8e6dedbd18ec7ba1eaf34e
Don't compile files generated by gengetopt with -Wall.

gcc-4.6.0 spits out lots of warningns of the form

cmdline/recv.cmdline.c:439:9: warning: variable 'stop_char' set but not used [-Wunused-but-set-variable]

Silence these warnings by moving -Wall to the set of debug flags
which are not used for compiling *.cmdline.c files.

For some versions of gcc, including gcc-3.3.3 which is still supported,
the -Wformat-security and -Wmissing-format-attribute options depend on
-Wformat, which is turned on by -Wall, so we have to move these options
also to the DEBUG_CPPFLAGS.
Makefile.in