Skip to content

Commit ded953e

Browse files
authored
Merge pull request open-source-parsers#771 from Binyang2014/master
Disable warning "C4702" when compiling json cpp using vs2013 and above resolves open-source-parsers#759
2 parents 2cc9b24 + 0a62267 commit ded953e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib_json/json_value.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
#include <cstddef> // size_t
2020
#include <algorithm> // min()
2121

22+
// Disable warning C4702 : unreachable code
23+
#if defined(_MSC_VER) && _MSC_VER >= 1800 // VC++ 12.0 and above
24+
#pragma warning(disable:4702)
25+
#endif
26+
2227
#define JSON_ASSERT_UNREACHABLE assert(false)
2328

2429
namespace Json {

0 commit comments

Comments
 (0)