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:
parent
51692042d9
commit
7fcb2532b9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user