summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-19 00:10:08 +0100
committerGünther Deschner <gd@samba.org>2011-03-19 00:58:25 +0100
commita252ded937db2e8e4c81b608fbbf18714a900032 (patch)
tree86c36db3de359815e91da40fa3757b13445c80f8
parent33b8d0a6ff51800bfadf47286584b0895b6b3e65 (diff)
downloadsamba-a252ded937db2e8e4c81b608fbbf18714a900032.tar.gz
samba-a252ded937db2e8e4c81b608fbbf18714a900032.tar.bz2
samba-a252ded937db2e8e4c81b608fbbf18714a900032.zip
wafsamba: add -Wcast-qual only to the toplevel (s4) build.
In samba3 there are a lot of warnings generated that make it a bit hard to track and monitor other build warnings. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Sat Mar 19 00:58:25 CET 2011 on sn-devel-104
-rw-r--r--buildtools/wafsamba/samba_autoconf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 02b52df4b0..174ca14210 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -597,8 +597,10 @@ def SAMBA_CONFIG_H(conf, path=None):
if Options.options.developer:
# we add these here to ensure that -Wstrict-prototypes is not set during configure
- conf.ADD_CFLAGS('-Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes',
+ conf.ADD_CFLAGS('-Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes',
testflags=True)
+ if os.getenv('TOPLEVEL_BUILD'):
+ conf.ADD_CFLAGS('-Wcast-qual', testflags=True)
conf.env.DEVELOPER_MODE = True
if Options.options.picky_developer: