daemon: enable -Werror and many gcc warnings when --enable-gcc-warnings
authorJim Meyering <meyering@redhat.com>
Mon, 17 Aug 2009 08:35:05 +0000 (10:35 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 17 Aug 2009 09:40:24 +0000 (11:40 +0200)
commit9dd53bcb10283295d7fb5f0a3469be2984d99926
treeb1ee4998a55dfe8fa15f4d8baa798f343e3c4435
parentc36fa40b981401cdbf61f596b804e79283d658b2
daemon: enable -Werror and many gcc warnings when --enable-gcc-warnings

* daemon/m4/gnulib-cache.m4: Add two modules: manywarnings, warnings.
* daemon/configure.ac: Implement --enable-gcc-warnings, and selectively
disable a few warning options that are either not useful or that provoke
too many warnings for now.
Define and AC_SUBST WARN_CFLAGS and WERROR_CFLAGS.
* daemon/Makefile.am (guestfsd_CFLAGS): Use $(WARN_CFLAGS)
and $(WERROR_CFLAGS), rather than just -Wall.
daemon/Makefile.am
daemon/configure.ac
daemon/m4/gnulib-cache.m4