]> git.saurik.com Git - wxWidgets.git/commitdiff
work around MSVC warnings about using uninitialized variables in optimized build
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Jun 2009 12:29:39 +0000 (12:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Jun 2009 12:29:39 +0000 (12:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/console/console.cpp
samples/scroll/scroll.cpp

index b9965739353db01242796f72800921df3b384fcd..5165ec811f33f6be3e4e0da810391fbb22860dd8 100644 (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",
index f9adc6f43f7b6f6cee2f0c82f468cf9a49538aef..e30c5348d3e95d4482158eefe8a67c748e56907e 100644 (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