Browse Source

SCons: Fixup enabling MSVC warning C4458 on /W3

Follow-up to #76946.
Rémi Verschelde 2 years ago
parent
commit
64816ff838
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SConstruct

+ 1 - 1
SConstruct

@@ -703,7 +703,7 @@ if selected_platform in platform_list:
                 env.Append(CCFLAGS=["/W4"])
             elif env["warnings"] == "all":
                 # C4458 is like -Wshadow. Part of /W4 but let's apply it for the default /W3 too.
-                env.Append(CCFLAGS=["/W3", "/w4458"])
+                env.Append(CCFLAGS=["/W3", "/w34458"])
             elif env["warnings"] == "moderate":
                 env.Append(CCFLAGS=["/W2"])
             # Disable warnings which we don't plan to fix.