diff --git a/indra/test/test.cpp b/indra/test/test.cpp
index 3e7be29b3902631b984ac5ac1759c842feda7a34..1adcfb6f45fe5bde80b1e38fe949a6f78515e407 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>