diff --git a/indra/test/test.cpp b/indra/test/test.cpp
index 52ac855d9f219bb0f370a84af82faf3191850079..9d327ff3be2666e59a7abb577724be6ae2292b1d 100644
--- a/indra/test/test.cpp
+++ b/indra/test/test.cpp
@@ -57,16 +57,11 @@
 #include <gtest/gtest.h>
 #endif
 
-#if LL_MSVC
-#pragma warning (push)
+#if LL_WINDOWS
 #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/scoped_ptr.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/make_shared.hpp>