wafsamba: make sure build fails when uninitialized variable is detected
authorAlexander Bokovoy <ab@samba.org>
Tue, 24 Feb 2015 13:12:39 +0000 (15:12 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 24 Feb 2015 19:21:52 +0000 (20:21 +0100)
In developer build, fail if uninitialized variable is found by GCC.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Feb 24 20:21:52 CET 2015 on sn-devel-104

buildtools/wafsamba/samba_autoconf.py

index c13bfe7652791580aaa4051f9985ee8d77ba545f..905adc7df6413e0bf8bf1d9bc0daa0a482bb9884 100644 (file)
@@ -677,6 +677,8 @@ def SAMBA_CONFIG_H(conf, path=None):
                         testflags=True)
         conf.ADD_CFLAGS('-Werror=return-type -Wreturn-type',
                         testflags=True)
+        conf.ADD_CFLAGS('-Werror=uninitialized -Wuninitialized',
+                        testflags=True)
 
         conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True)
         # This check is because for ldb_search(), a NULL format string