[Analyzers][CPP]Turn on warning 26471 (#23103)

Don't use reinterpret_cast. A cast from void* can use static_cast
This commit is contained in:
sosssego
2023-01-16 08:18:55 -03:00
committed by GitHub
parent 1a1f4351ca
commit d84a13bb7e
11 changed files with 24 additions and 9 deletions

View File

@@ -2,7 +2,12 @@
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
// disable warning 26471 - Don't use reinterpret_cast. A cast from void* can use static_cast
#pragma warning(push)
#pragma warning(disable: 26471)
#include <wil/resource.h>
#pragma warning(pop)
#include <optional>
#include <string>