summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-10-30 11:48:25 +0100
committerBjoern Jacke <bj@sernet.de>2012-10-30 13:18:50 +0100
commit7fcb2532b99ddf65d78dd02ea06ce8a1a6229949 (patch)
tree60a0946310735669eb03d572a36d608dded2f65c /lib/replace/wscript
parent51692042d9f898c5e8f1cbc78031e37d23ec032a (diff)
downloadsamba-7fcb2532b99ddf65d78dd02ea06ce8a1a6229949.tar.gz
samba-7fcb2532b99ddf65d78dd02ea06ce8a1a6229949.tar.bz2
samba-7fcb2532b99ddf65d78dd02ea06ce8a1a6229949.zip
wafbuild: reorder the Werror checks so that the ambigous w2 option is being checked last
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 8d97f5b234..9a6be208de 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -54,7 +54,11 @@ struct foo bar = { .y = 'X', .x = 1 };
break
# Try to find the right extra flags for -Werror behaviour
- for f in ["-Werror", "-w2", "-errwarn=%all", "-qhalt=w"]:
+ for f in ["-Werror", # GCC
+ "-errwarn=%all", # Sun Studio
+ "-qhalt=w", # IBM xlc
+ "-w2", # Tru64
+ ]:
if conf.CHECK_CFLAGS([f], '''
'''):
if not 'WERROR_CFLAGS' in conf.env: