]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/strings/vararg.cpp
added a simple benchmark for wxDC::DrawLine() performance
[wxWidgets.git] / tests / strings / vararg.cpp
index 556dd74ca2770f9cf66f97afa6a870288facf9de..c65018c71ff72eef3130f44db3251f0d0eb20d53 100644 (file)
@@ -114,7 +114,15 @@ void VarArgTestCase::CharPrintf()
     WX_ASSERT_STR_EQUAL( "a to z", s );
 
     // test char used as integer:
+    #ifdef _MSC_VER
+        #pragma warning(disable:4305) // truncation of constant value in VC6
+        #pragma warning(disable:4309) // truncation of constant value
+    #endif
     c = 240;
+    #ifdef _MSC_VER
+        #pragma warning(default:4305) // truncation of constant value in VC6
+        #pragma warning(default:4309)
+    #endif
     s.Printf("value is %i (int)", c);
     WX_ASSERT_STR_EQUAL( wxString("value is -16 (int)"), s );