mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
[Analyzers][CPP] Turn on warning 26492 (#23492)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user