Skip to content

Commit

Permalink
Silence -Wstringop-overflow warning from lua codebase
Browse files Browse the repository at this point in the history
It currently results in some false positives from gcc 10.
  • Loading branch information
loonycyborg authored and sevu committed Jan 18, 2021
1 parent 44aa697 commit de68aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,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.
if "clang" in env["CXX"]:
env_lua.AppendUnique(CCFLAGS = Split("-Wno-parentheses-equality"))
Expand Down

0 comments on commit de68aad

Please sign in to comment.