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

wafbuild: reorder the Werror checks so that the ambigous w2 option is being checked last

This commit is contained in:
Björn Jacke 2012-10-30 11:48:25 +01:00 committed by Bjoern Jacke
parent 51692042d9
commit 7fcb2532b9

View File

@ -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: