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
2020-01-16 11:49:15 +01:00
parent 4cbd894812
commit 81f56796a1
14 changed files with 17 additions and 92 deletions
-6
View File
@@ -14,12 +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
#endif
#include <gtest/gtest.h>
#include <gsl/gsl_assert> // for fail_fast (ptr only), Ensures, Expects