[Analyzers][CPP] Turn on warning 4458 (#22265)

* Turn on warning 4458

Fix the errors by changing variable names and
supressing the warning on winRT GDI headers

* explaining the warning disables
This commit is contained in:
sosssego
2022-11-29 14:10:48 +00:00
committed by GitHub
parent 21a9c82df4
commit 6a6c45189e
14 changed files with 75 additions and 52 deletions

View File

@@ -2,7 +2,13 @@
#include <Windows.h>
// disabling warning 4458 - declaration of 'identifier' hides class member
// to avoid warnings from GDI files - can't add winRT directory to external code
// in the Cpp.Build.props
#pragma warning(push)
#pragma warning(disable : 4458)
#include "gdiplus.h"
#pragma warning(pop)
#include <string>
#include <vector>