Silence -Wstringop-overflow warning from lua codebase

It currently results in some false positives from gcc 10.
This commit is contained in:
loonycyborg 2020-11-19 20:55:32 +03:00
parent 159609b58b
commit d643edc907

View file

@ -116,7 +116,7 @@ env_lua = env.Clone(
CPPPATH = ["$CPPPATH", Dir(".").srcnode()],
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.
# also silence a warning for the lua code
if "clang" in env["CXX"]: