mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
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:
parent
af1ed708e4
commit
8b8e3ee117
@ -11,6 +11,10 @@
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4702) // Unreachable code -- MSVC 19 (VS 2015) sees right through the indirection
|
||||
#endif
|
||||
|
||||
namespace
|
||||
{
|
||||
inline int thisThrows()
|
||||
|
Loading…
Reference in New Issue
Block a user