From c63ac26f03834ab4e2f5a3a566c54b67b08e9b33 Mon Sep 17 00:00:00 2001 From: Tristan Penman Date: Wed, 28 Jul 2021 17:09:45 +1000 Subject: [PATCH] Disable C4702: unreachable code warnings for json_pointer.hpp --- include/valijson/internal/json_pointer.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/valijson/internal/json_pointer.hpp b/include/valijson/internal/json_pointer.hpp index e1c4903..b290c02 100644 --- a/include/valijson/internal/json_pointer.hpp +++ b/include/valijson/internal/json_pointer.hpp @@ -11,6 +11,11 @@ #include #include +#ifdef _MSC_VER +#pragma warning( push ) +#pragma warning( disable : 4702 ) +#endif + namespace valijson { namespace internal { namespace json_pointer { @@ -264,3 +269,7 @@ inline AdapterType resolveJsonPointer( } // namespace json_pointer } // namespace internal } // namespace valijson + +#ifdef _MSC_VER +#pragma warning( pop ) +#endif