From 85aa7707019879e8047eb0945342d8b324d5ae7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 8 May 2017 01:26:06 +0200 Subject: [PATCH] Disable unreachable code warning for TrickyTests.cpp Somehow this only triggers for VS 2015, Win32 | Release configuration... --- projects/SelfTest/TrickyTests.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/SelfTest/TrickyTests.cpp b/projects/SelfTest/TrickyTests.cpp index 4dfdf39e..ca8c4518 100644 --- a/projects/SelfTest/TrickyTests.cpp +++ b/projects/SelfTest/TrickyTests.cpp @@ -10,6 +10,11 @@ #pragma clang diagnostic ignored "-Wpadded" #endif +#ifdef _MSC_VER +#pragma warning (disable : 4702) // Disable unreachable code warning for the last test + // that is triggered when compiling as Win32|Release +#endif + #include #include "catch.hpp"