mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
wafsamba: make sure build fails when uninitialized variable is detected
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
This commit is contained in:
parent
b3a472d976
commit
a00d72bf5d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user