Bug 556886 - Disable C4275 only inside stl_wrappers. r=ehsan
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Fri, 04 Jan 2013 12:49:25 +0900
changeset 126663 2e003bb70f9c149063990b67a44969c000ef23e3
parent 126662 5029e7c89abd3d716a0a55eb6495bc1934d5a8c3
child 126664 880ec15a42bffa0b22e4f3df1d86e0aafb670b87
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs556886
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 556886 - Disable C4275 only inside stl_wrappers. r=ehsan
config/msvc-stl-wrapper.template.h
--- a/config/msvc-stl-wrapper.template.h
+++ b/config/msvc-stl-wrapper.template.h
@@ -55,18 +55,20 @@
 //
 // FIXME/bug 551254: because we're not wrapping all the STL headers we
 // use, undefining this here can cause some headers to be built with
 // iterator checking and others not.  Turning this off until we have a
 // better plan.
 //#  undef _SECURE_SCL
 #endif
 
-// We know that code won't be able to catch exceptions, but that's OK
-// because we're not throwing them.
+// C4275: When _HAS_EXCEPTIONS is set to 0, system STL header
+//        will generate the warning which we can't modify.
+// C4530: We know that code won't be able to catch exceptions,
+//        but that's OK because we're not throwing them.
 #pragma warning( push )
-#pragma warning( disable : 4530 )
+#pragma warning( disable : 4275 4530 )
 
 #include <${HEADER_PATH}>
 
 #pragma warning( pop )
 
 #endif  // if mozilla_${HEADER}_h