]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cppunit.h
Compilation fixes for old SDKs (VC6) after recent commit.
[wxWidgets.git] / include / wx / cppunit.h
index 7d608a63cae5c831397353403b1184d1be45890c..d320acdc7109dc922fcbefac74d03ca0a09a3493 100644 (file)
 
 #include "wx/beforestd.h"
 #ifdef __VISUALC__
+    #pragma warning(push)
+
     // with cppunit 1.12 we get many bogus warnings 4701 (local variable may be
     // used without having been initialized) in TestAssert.h
     #pragma warning(disable:4701)
+
+    // and also 4100 (unreferenced formal parameter) in extensions/
+    // ExceptionTestCaseDecorator.h
+    #pragma warning(disable:4100)
 #endif
 
 #include <cppunit/extensions/TestFactoryRegistry.h>
@@ -61,7 +67,7 @@
 #include <cppunit/CompilerOutputter.h>
 
 #ifdef __VISUALC__
-    #pragma warning(default:4701)
+    #pragma warning(pop)
 #endif
 #include "wx/afterstd.h"