1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

build: Enable more warnings when using the --pedantic configuration option

This commit is contained in:
Kai Blin 2010-03-19 09:17:15 +01:00 committed by Andrew Tridgell
parent 24cfa2957a
commit 752533f865

View File

@ -30,6 +30,9 @@ def set_options(opt):
help=("use file timestamps instead of content for build dependencies (BROKEN)"),
action="store_true", dest='timestamp_dependencies', default=False)
opt.add_option('-C', action='store_true', help='dummy option for autoconf compatibility')
opt.add_option('--pedantic',
help=("Enable even more compiler warnings"),
action='store_true', dest='pedantic', default=False)
@wafsamba.runonce
def configure(conf):
@ -214,6 +217,9 @@ def configure(conf):
addmain=False,
msg="Checking for C99 vsnprintf")
if Options.options.pedantic:
conf.ADD_CFLAGS('-W')
if Options.options.developer:
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')