mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
build: warn about mixed declarations and code
Attempt to use the -Wdeclaration-after-statement cflag when building in developer mode. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Feb 1 20:20:35 CET 2014 on sn-devel-104
This commit is contained in:
parent
b449d13be4
commit
a8071954fe
@ -640,7 +640,7 @@ 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 -Werror=strict-prototypes -Wstrict-prototypes -Werror=pointer-arith -Wpointer-arith -Wcast-align -Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address',
|
||||
conf.ADD_CFLAGS('-Wall -g -Wshadow -Werror=strict-prototypes -Wstrict-prototypes -Werror=pointer-arith -Wpointer-arith -Wcast-align -Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address -Wdeclaration-after-statement',
|
||||
testflags=True)
|
||||
conf.ADD_CFLAGS('-Wcast-qual', testflags=True)
|
||||
conf.env.DEVELOPER_MODE = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user