Merge pull request #771 from Binyang2014/master

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

resolves #759
This commit is contained in:
Christopher Dunn 2018-05-09 02:04:08 -05:00 committed by GitHub
commit ded953e0a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {