build: --enable-gcc-warnings: enable -Wstrict-overflow in src/
commitad756440fbf29fa35fd5c1c0893a3e96fe60aa54
authorJim Meyering <meyering@redhat.com>
Wed, 25 May 2011 12:34:13 +0000 (25 14:34 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 26 May 2011 20:13:54 +0000 (26 22:13 +0200)
tree691f313a57415594460c0458b75f9ea268f8ee52
parent419b6c9d42ba643265f802cd150d0b232e43186a
build: --enable-gcc-warnings: enable -Wstrict-overflow in src/

* configure.ac (WARN_CFLAGS): Don't turn off -Wstrict-overflow.
(GNULIB_WARN_CFLAGS): Remove -Wstrict-overflow from the list of
warning options used in lib/.
Normally I find that -Wstrict-overflow produces too many false
positives, but considering that it warns of the bug reported in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33498, I now think
it is worthwhile.  The lesser of two evils.
Thanks to Daniel Veillard for showing me the gcc bug report.
configure.ac