From 0a62267fe42b87e9000acf7012d24bad80962742 Mon Sep 17 00:00:00 2001 From: binyangl Date: Tue, 8 May 2018 20:55:30 +0800 Subject: [PATCH] Disable warning "C4702" when compiling json cpp using vs2013 and above --- src/lib_json/json_value.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index ed49df2..c7eac08 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -19,6 +19,11 @@ #include // size_t #include // 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 {