SCons: Fixup enabling MSVC warning C4458 on /W3

Follow-up to #76946.
This commit is contained in:
Rémi Verschelde 2023-05-12 13:55:34 +02:00
parent 65778525bf
commit 64816ff838
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -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.