From 8b8e3ee1173e4af40c4e83db6eede9c77450c5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 6 Mar 2017 10:52:21 +0100 Subject: [PATCH] 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. --- projects/SelfTest/ExceptionTests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/SelfTest/ExceptionTests.cpp b/projects/SelfTest/ExceptionTests.cpp index de8f6fa3..69eba2a0 100644 --- a/projects/SelfTest/ExceptionTests.cpp +++ b/projects/SelfTest/ExceptionTests.cpp @@ -11,6 +11,10 @@ #include #include +#ifdef _MSC_VER +#pragma warning(disable:4702) // Unreachable code -- MSVC 19 (VS 2015) sees right through the indirection +#endif + namespace { inline int thisThrows()