mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-21 23:45:20 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user