summaryrefslogtreecommitdiffstats
path: root/daemon/m4
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-17 10:35:05 +0200
committerJim Meyering <meyering@redhat.com>2009-08-17 11:40:24 +0200
commit9dd53bcb10283295d7fb5f0a3469be2984d99926 (patch)
treeb1ee4998a55dfe8fa15f4d8baa798f343e3c4435 /daemon/m4
parentc36fa40b981401cdbf61f596b804e79283d658b2 (diff)
downloadlibguestfs-9dd53bcb10283295d7fb5f0a3469be2984d99926.tar.gz
libguestfs-9dd53bcb10283295d7fb5f0a3469be2984d99926.tar.xz
libguestfs-9dd53bcb10283295d7fb5f0a3469be2984d99926.zip
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.
Diffstat (limited to 'daemon/m4')
-rw-r--r--daemon/m4/gnulib-cache.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/m4/gnulib-cache.m4 b/daemon/m4/gnulib-cache.m4
index 8aa504a3..ea499d86 100644
--- a/daemon/m4/gnulib-cache.m4
+++ b/daemon/m4/gnulib-cache.m4
@@ -15,12 +15,14 @@
# Specification in the form of a command-line invocation:
-# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --no-libtool --macro-prefix=gl hash
+# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --no-libtool --macro-prefix=gl hash manywarnings warnings
# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([])
gl_MODULES([
hash
+ manywarnings
+ warnings
])
gl_AVOID([])
gl_SOURCE_BASE([lib])