[Analyzers][CPP] Turn on warning 26492 (#23492)

This commit is contained in:
sosssego
2023-02-08 11:54:16 +00:00
committed by GitHub
parent 9168f871af
commit 17475ec705
6 changed files with 15 additions and 6 deletions

View File

@@ -6,9 +6,10 @@
#include <dshow.h>
// 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 on winrt
// 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 26497)
#pragma warning(disable : 26471 26492 26497)
#include <wil/com.h>
#pragma warning(push)

View File

@@ -6,9 +6,10 @@
#include <cguid.h>
// 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 26497 for winrt - This function function-name could be marked constexpr if compile-time evaluation is desired.
#pragma warning(push)
#pragma warning(disable : 26471 26497)
#pragma warning(disable : 26471 26492 26497)
#include <wil/com.h>
#pragma warning(push)