summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-03-19 09:17:15 +0100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:54 +1000
commit752533f86541214b855c123215f4c40a5bcae761 (patch)
treec9d8c6c57b864a39a6ba32e478d265cc1cfe1340 /lib
parent24cfa2957a8ab5f89f4e12207d378548dfbe1351 (diff)
downloadsamba-752533f86541214b855c123215f4c40a5bcae761.tar.gz
samba-752533f86541214b855c123215f4c40a5bcae761.tar.bz2
samba-752533f86541214b855c123215f4c40a5bcae761.zip
build: Enable more warnings when using the --pedantic configuration option
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index e189ab31df..9b4aa6d9fe 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -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')