Skip to content

Commit

Permalink
Attempt to turn off warning sin thirdparty with disable_warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Jun 3, 2023
1 parent 984fd76 commit 486fc13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thirdparty/fast_noise_2/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ else:
# Example: Metadata.h NameDesc constructor, prevents from building because treated as error.
# TODO This doesn't work because for some reason `-Wshadow` FOLLOWS this parameter in the command line, as if Godot
# adds it AFTER parsing this SCons file...
env_fn2.Append(CXXFLAGS=["-Wno-shadow"])
print("DDD ", env_fn2['CXXFLAGS'])
if '-Wshadow' in env_fn2['CXXFLAGS']:
env_fn2['CXXFLAGS'].remove('-Wshadow')
# env_fn2.Append(CXXFLAGS=["-Wno-shadow"])
# if '-Wshadow' in env_fn2['CXXFLAGS']:
# env_fn2['CXXFLAGS'].remove('-Wshadow')
env_fn2.disable_warnings()

env_fn2_scalar = env_fn2.Clone()
env_fn2_sse2 = env_fn2.Clone()
Expand Down

0 comments on commit 486fc13

Please sign in to comment.