mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: disable format-nonliteral for Clang, it's buggy there
This commit is contained in:
7
wscript
7
wscript
@@ -350,7 +350,6 @@ def configure(conf):
|
||||
'-Werror=string-compare',
|
||||
'-Werror=tautological-compare',
|
||||
'-Werror=use-after-free=3',
|
||||
'-Werror=unsequenced', # clang's version of -Werror=sequence-point
|
||||
'-Werror=vla',
|
||||
'-Werror=write-strings',
|
||||
|
||||
@@ -370,6 +369,12 @@ def configure(conf):
|
||||
'-Wunused-but-set-variable',
|
||||
]
|
||||
|
||||
if conf.env.COMPILER_CC == 'clang':
|
||||
opt_flags += [
|
||||
'-Werror=unsequenced', # clang's version of -Werror=sequence-point
|
||||
'-Wno-error=format-nonliteral', # clang is kinda stupid about it
|
||||
]
|
||||
|
||||
opt_cflags = [
|
||||
'-Werror=declaration-after-statement',
|
||||
'-Werror=enum-conversion',
|
||||
|
||||
Reference in New Issue
Block a user