scons: silence clang-specific "pointer-bool" warning in lua source

This commit is contained in:
Chris Beck 2015-04-13 09:14:20 -04:00 committed by Ignacio R. Morelle
parent 88536b42de
commit d881c7edba

View file

@ -37,7 +37,7 @@ linit.cpp
""")
liblua = env.Library("lua", lua_sources,
# Silence some Clang-specific warnings due to extra parentheses in if statements when comparing.
CCFLAGS = ["$CCFLAGS", "clang" in env["CXX"] and "-Wno-parentheses-equality" or []],
CCFLAGS = ["$CCFLAGS", "clang" in env["CXX"] and Split("-Wno-parentheses-equality -Wno-pointer-bool-conversion") or []],
CCCOM = env["CXXCOM"],
CPPPATH = ["$CPPPATH", Dir(".").srcnode()],
CPPDEFINES = ["$CPPDEFINES", env["PLATFORM"] != "win32" and "LUA_USE_POSIX" or []])