SCons: Add enum conversion warning

This commit is contained in:
Thaddeus Crews
2025-04-26 10:05:07 -05:00
parent e37c6261ea
commit dc9c34f0c6
14 changed files with 67 additions and 77 deletions

View File

@@ -877,7 +877,7 @@ if env.msvc and not methods.using_clang(env): # MSVC
env.AppendUnique(LINKFLAGS=["/WX"])
else: # GCC, Clang
common_warnings = []
common_warnings = ["-Wenum-conversion"]
if methods.using_gcc(env):
common_warnings += ["-Wshadow", "-Wno-misleading-indentation"]