build: more developer flags
authorAndrew Tridgell <tridge@samba.org>
Mon, 22 Feb 2010 21:26:55 +0000 (08:26 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:35 +0000 (20:26 +1000)
lib/replace/wscript

index d40843522cfe2e6c437f42e4b11f3fee61f61f2c..d2ca664b343405080dce8a187c8a0f4038688eb7 100644 (file)
@@ -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()