summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-23 08:26:55 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:35 +1000
commit186e7115ab8b418fae0bdd7bb9fca369a6d6043f (patch)
treea23933987f09ffe08d749d15b194546abfaea10e /lib/replace
parent13cbd9f919a3cf6ea83cdc80c3e6891d9d276fe4 (diff)
downloadsamba-186e7115ab8b418fae0bdd7bb9fca369a6d6043f.tar.gz
samba-186e7115ab8b418fae0bdd7bb9fca369a6d6043f.tar.bz2
samba-186e7115ab8b418fae0bdd7bb9fca369a6d6043f.zip
build: more developer flags
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index d40843522c..d2ca664b34 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -34,9 +34,6 @@ def configure(conf):
conf.check_tool('compiler_cc')
- if Options.options.developer:
- conf.ADD_CFLAGS('-Wall -g -DDEVELOPER')
-
conf.env['RPATH_ON_INSTALL'] = Options.options.enable_rpath
conf.DEFUN('_GNU_SOURCE', 1)
@@ -156,6 +153,9 @@ main() { foo("hello"); }
quote=0,
msg="Checking for C99 vsnprintf")
+ if Options.options.developer:
+ conf.ADD_CFLAGS('-Wall -g -Wfatal-errors -DDEVELOPER -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k')
+
conf.SAMBA_CONFIG_H()
conf.SAMBA_BUILD_ENV()