[Analyzers][CPP]Changes to fix warning 26493 on PowerToys/tools (#23674)

This commit is contained in:
sosssego
2023-02-08 14:01:40 +00:00
committed by GitHub
parent c7f761a589
commit 10252c3c1e
9 changed files with 17 additions and 14 deletions

View File

@@ -5,9 +5,10 @@
// disable warning 26471 - Don't use reinterpret_cast. A cast from void* can use static_cast
// disable warning 26492 - Don't use const_cast to cast away const
// disable warning 26493 - Don't use C-style casts
// Disable 26497 for winrt - This function function-name could be marked constexpr if compile-time evaluation is desired.
#pragma warning(push)
#pragma warning(disable : 26471 26492 26497)
#pragma warning(disable : 26471 26492 26493 26497)
#include <wil/resource.h>
#pragma warning(pop)