only use -Wno-unused-result on Linux, also actually fix the unused results that we could possibly care about

Fixes cross compilers, TODO: I don't think scons can check if a flag exists but might support adding a test for that, even if through hacky means, like CheckFramework
This commit is contained in:
jacob1
2016-04-26 23:55:14 -04:00
parent 6624550dc1
commit a8427ef33a
4 changed files with 19 additions and 41 deletions

View File

@@ -388,7 +388,9 @@ if not msvc:
env.Append(CXXFLAGS=['-std=gnu++98'])
else:
env.Append(CXXFLAGS=['-std=c++98'])
env.Append(CXXFLAGS=['-Wno-invalid-offsetof', '-Wno-unused-result'])
env.Append(CXXFLAGS=['-Wno-invalid-offsetof'])
if platform == "Linux":
env.Append(CXXFLAGS=['-Wno-unused-result'])
#Add platform specific flags and defines