mirror of
https://github.com/microsoft/GSL.git
synced 2025-11-17 07:49:36 +01:00
Suppressed CppCoreCheck warnings.
This commit is contained in:
@@ -37,10 +37,16 @@
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
// turn off some warnings that are noisy about our Expects statements
|
||||
#pragma warning(push)
|
||||
|
||||
// turn off some warnings that are noisy about our Expects statements
|
||||
#pragma warning(disable : 4127) // conditional expression is constant
|
||||
|
||||
// blanket turn off warnings from CppCoreCheck for now
|
||||
// so people aren't annoyed by them when running the tool.
|
||||
// more targeted suppressions will be added in a future update to the GSL
|
||||
#pragma warning(disable: 26481 26482 26483 26485 26490 26491 26492 26493 26495)
|
||||
|
||||
// No MSVC does constexpr fully yet
|
||||
#pragma push_macro("constexpr")
|
||||
#define constexpr
|
||||
|
||||
Reference in New Issue
Block a user