Disable warning "C4702" when compiling json cpp using vs2013 and above

This commit is contained in:
binyangl 2018-05-08 20:55:30 +08:00
parent 2cc9b24f0d
commit 0a62267fe4

View File

@ -19,6 +19,11 @@
#include <cstddef> // size_t
#include <algorithm> // min()
// Disable warning C4702 : unreachable code
#if defined(_MSC_VER) && _MSC_VER >= 1800 // VC++ 12.0 and above
#pragma warning(disable:4702)
#endif
#define JSON_ASSERT_UNREACHABLE assert(false)
namespace Json {