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-15 18:33:37 +01:00
parent 4cbd894812
commit 81f56796a1
14 changed files with 17 additions and 92 deletions

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_algorithm> // for copy
#include <gsl/span> // for span