fix a couple of harmless warnings in MSVC build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-14 23:33:46 +00:00
parent aa3b041ed7
commit 2452025c59
2 changed files with 12 additions and 0 deletions

View File

@@ -282,6 +282,12 @@ void FormatConverterTestCase::check(const wxString& input,
const wxString& expectedWcharUnix,
const wxString& expectedWcharWindows)
{
// all of them are unused in some build configurations
wxUnusedVar(expectedScanf);
wxUnusedVar(expectedUtf8);
wxUnusedVar(expectedWcharUnix);
wxUnusedVar(expectedWcharWindows);
wxString result, msg;
#ifndef __WINDOWS__

View File

@@ -114,7 +114,13 @@ void VarArgTestCase::CharPrintf()
WX_ASSERT_STR_EQUAL( "a to z", s );
// test char used as integer:
#ifdef _MSC_VER
#pragma warning(disable:4309) // truncation of constant value
#endif
c = 240;
#ifdef _MSC_VER
#pragma warning(default:4309)
#endif
s.Printf("value is %i (int)", c);
WX_ASSERT_STR_EQUAL( wxString("value is -16 (int)"), s );