Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Disable unreachable code warning for TrickyTests.cpp

Somehow this only triggers for VS 2015, Win32 | Release configuration...
Commit
85aa7707019879e8047eb0945342d8b324d5ae7b
Author
Martin Hořeňovský ·
Parents
f82e31255236

Files · Download .tar.gz

Changes

 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 <stdio.h>
 
 #include "catch.hpp"