MSVC and CoreChecker warning suppression for tests to CMake

Suppress CppCoreCheck warnings on GTest macros.
Suppress CppCoreCheck advice to use the GSL
This commit is contained in:
Roelf-Jilling committed 2020-01-16 11:49:15 +01:00
1 parent 4cbd894812
commit 81f56796a1
14 files changed
+17 -92

No files matched your search

-9
View File
@@ -14,15 +14,6 @@
//
///////////////////////////////////////////////////////////////////////////////
#ifdef _MSC_VER
// blanket turn off warnings from CppCoreCheck from catch
// so people aren't annoyed by them when running the tool.
#pragma warning(disable : 26440 26426) // from catch
// Fix VS2015 build breaks in Release
#pragma warning(disable : 4702) // unreachable code
#endif
#include <gtest/gtest.h>
#include <gsl/pointers> // for not_null, operator<, operator<=, operator>