Disable C4702 in Exception tests self tests

VS 2015 in Release mode sees through our indirection and complains.
There is no reason to make the indirectoin harder to reason about,
instead of just disabling the warning.
This commit is contained in:
Martin Hořeňovský 2017-03-06 10:52:21 +01:00
parent af1ed708e4
commit 8b8e3ee117

View File

@ -11,6 +11,10 @@
#include <string> #include <string>
#include <stdexcept> #include <stdexcept>
#ifdef _MSC_VER
#pragma warning(disable:4702) // Unreachable code -- MSVC 19 (VS 2015) sees right through the indirection
#endif
namespace namespace
{ {
inline int thisThrows() inline int thisThrows()