Silence -Wstringop-overflow warning from lua codebase
It currently results in some false positives from gcc 10.
This commit is contained in:
parent
159609b58b
commit
d643edc907
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ env_lua = env.Clone(
|
||||||
CPPPATH = ["$CPPPATH", Dir(".").srcnode()],
|
CPPPATH = ["$CPPPATH", Dir(".").srcnode()],
|
||||||
CPPDEFINES = ["$CPPDEFINES", env["PLATFORM"] != "win32" and "LUA_USE_POSIX" or []])
|
CPPDEFINES = ["$CPPDEFINES", env["PLATFORM"] != "win32" and "LUA_USE_POSIX" or []])
|
||||||
|
|
||||||
env_lua.AppendUnique(CCFLAGS = Split("-Wno-old-style-cast -Wno-useless-cast"))
|
env_lua.AppendUnique(CCFLAGS = Split("-Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow"))
|
||||||
# Silence some Clang-specific warnings due to extra parentheses in if statements when comparing.
|
# Silence some Clang-specific warnings due to extra parentheses in if statements when comparing.
|
||||||
# also silence a warning for the lua code
|
# also silence a warning for the lua code
|
||||||
if "clang" in env["CXX"]:
|
if "clang" in env["CXX"]:
|
||||||
|
|
Loading…
Add table
Reference in a new issue