manywarnings: cater to more gcc infelicities
authorEric Blake <eblake@redhat.com>
Thu, 6 Sep 2012 21:29:53 +0000 (15:29 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Oct 2012 15:18:02 +0000 (09:18 -0600)
commit6169d5316f95e433f8fa54d751fc47a692ba6871
tree05170ffdb7d623be2e9624830d8ab005b454a529
parent6ed6dffbe79bcf95e2ed5593eee94ab32fcde3f4
manywarnings: cater to more gcc infelicities

Some versions of gcc (at least 4.2.1) noisily warn if
-Wuninitialized is given without -O; in isolation, configure
learns that the warning option is supported, but when later
compiling with -Werror, this makes builds fail.  If the
option will have no effect for the configured choice of
$CFLAGS, then it is not worth including in the set.

* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
-Wuninitialized without -O.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/manywarnings.m4