mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[Analyzers][CPP]Changes to fix warning 26493 on PowerToys/tools (#23674)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user