summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronqtam <vik.kirilov@gmail.com>2018-05-07 20:18:16 +0300
committeronqtam <vik.kirilov@gmail.com>2018-05-10 16:18:43 +0300
commitcb23394272fb835a662923c379d1d9be105e4495 (patch)
treecd347bc1e4a9634e637a70a69a716b4926291730
parentf2d91524deede53d55d05eef6c322c36a1d58b56 (diff)
doctest builds with Visual Studio 2017 (15.7.0) - disabling a spectre related warning
-rw-r--r--doctest/doctest.h1
-rw-r--r--doctest/parts/doctest_impl.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/doctest/doctest.h b/doctest/doctest.h
index b84f557..a4c4144 100644
--- a/doctest/doctest.h
+++ b/doctest/doctest.h
@@ -3273,6 +3273,7 @@ DOCTEST_MSVC_SUPPRESS_WARNING(4365) // conversion from 'int' to 'unsigned', sign
DOCTEST_MSVC_SUPPRESS_WARNING(4820) // padding in structs
DOCTEST_MSVC_SUPPRESS_WARNING(4640) // construction of local static object is not thread-safe
DOCTEST_MSVC_SUPPRESS_WARNING(5039) // pointer to potentially throwing function passed to extern C
+DOCTEST_MSVC_SUPPRESS_WARNING(5045) // Spectre mitigation stuff
#if defined(DOCTEST_NO_CPP11_COMPAT)
DOCTEST_CLANG_SUPPRESS_WARNING("-Wc++98-compat")
diff --git a/doctest/parts/doctest_impl.h b/doctest/parts/doctest_impl.h
index 166766f..b2f90ba 100644
--- a/doctest/parts/doctest_impl.h
+++ b/doctest/parts/doctest_impl.h
@@ -69,6 +69,7 @@ DOCTEST_MSVC_SUPPRESS_WARNING(4365) // conversion from 'int' to 'unsigned', sign
DOCTEST_MSVC_SUPPRESS_WARNING(4820) // padding in structs
DOCTEST_MSVC_SUPPRESS_WARNING(4640) // construction of local static object is not thread-safe
DOCTEST_MSVC_SUPPRESS_WARNING(5039) // pointer to potentially throwing function passed to extern C
+DOCTEST_MSVC_SUPPRESS_WARNING(5045) // Spectre mitigation stuff
#if defined(DOCTEST_NO_CPP11_COMPAT)
DOCTEST_CLANG_SUPPRESS_WARNING("-Wc++98-compat")