diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-09 19:54:40 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-09 20:31:06 +1000 |
commit | 5f90d3260be8f30e5d9ccd542aca1807d58d2443 (patch) | |
tree | d19d6f4acbc364979247b7d0774319375efcb7b3 /buildtools/wafsamba/samba_autoconf.py | |
parent | 0d92dd1074971a3c1e3116de5188a475298587a2 (diff) | |
download | samba-5f90d3260be8f30e5d9ccd542aca1807d58d2443.tar.gz samba-5f90d3260be8f30e5d9ccd542aca1807d58d2443.tar.bz2 samba-5f90d3260be8f30e5d9ccd542aca1807d58d2443.zip |
build: added --picky-developer and --fatal-errors
Added configure options for --fatal-errors and --picky-developer. This
removes -Wfatal-errors from the --enable-developer flags.
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 32c7463981..4731a4e13d 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -541,9 +541,15 @@ 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 -Wfatal-errors -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k', + conf.ADD_CFLAGS('-Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k', testflags=True) + if Options.options.picky_developer: + conf.ADD_CFLAGS('-Werror', testflags=True) + + if Options.options.fatal_errors: + conf.ADD_CFLAGS('-Wfatal-errors', testflags=True) + if Options.options.pedantic: conf.ADD_CFLAGS('-W', testflags=True) |