work around MSVC warnings about using uninitialized variables in optimized build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-06-07 12:29:39 +00:00
parent adcc13ac81
commit 92981c938d
2 changed files with 3 additions and 3 deletions

View File

@ -520,8 +520,8 @@ static void TestDllListLoaded()
const wxDynamicLibraryDetails& details = dlls[n];
printf("%-45s", (const char *)details.GetPath().mb_str());
void *addr;
size_t len;
void *addr wxDUMMY_INITIALIZE(NULL);
size_t len wxDUMMY_INITIALIZE(0);
if ( details.GetAddress(&addr, &len) )
{
printf(" %08lx:%08lx",

View File

@ -1240,7 +1240,7 @@ void MyAutoScrollingWindow::OnDraw(wxDC& dc)
dc.SetPen(*wxTRANSPARENT_PEN);
const wxString str = sm_testData;
size_t strLength = str.length();
wxString::const_iterator str_i;
wxString::const_iterator str_i = std.begin();
// draw the characters
// 1. for each update region