From 33a42b32ca72031a79edca821966f6ebbdcddc93 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed <nat@lindenlab.com> Date: Tue, 7 Feb 2012 13:06:38 -0500 Subject: [PATCH] Disable MSVC warning C4702 (unreachable code) in Boost headers. --- indra/test/test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/test/test.cpp b/indra/test/test.cpp index 3e7be29b390..1adcfb6f45f 100644 --- a/indra/test/test.cpp +++ b/indra/test/test.cpp @@ -54,8 +54,16 @@ #include <gtest/gtest.h> #endif +#if LL_MSVC +#pragma warning (push) +#pragma warning (disable : 4702) // warning C4702: unreachable code +#endif #include <boost/iostreams/tee.hpp> #include <boost/iostreams/stream.hpp> +#if LL_MSVC +#pragma warning (pop) +#endif + #include <boost/shared_ptr.hpp> #include <boost/make_shared.hpp> #include <boost/foreach.hpp> -- GitLab