summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/base/winsock_util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/base/winsock_util.cc b/net/base/winsock_util.cc
index 8a4083a..5e5c312 100644
--- a/net/base/winsock_util.cc
+++ b/net/base/winsock_util.cc
@@ -13,6 +13,7 @@ namespace {
// Prevent the compiler from optimizing away the arguments so they appear
// nicely on the stack in crash dumps.
+#pragma warning(push)
#pragma warning (disable: 4748)
#pragma optimize( "", off )
@@ -28,7 +29,7 @@ void CheckEventWait(WSAEVENT hEvent, DWORD wait_rv, DWORD expected) {
}
#pragma optimize( "", on )
-#pragma warning (default: 4748)
+#pragma warning(pop)
net::PlatformSocketFactory* g_socket_factory = NULL;