]> git.saurik.com Git - wxWidgets.git/commitdiff
fix (bogus) warning about uninitialized variable in release MSVC build
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jun 2009 23:26:46 +0000 (23:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jun 2009 23:26:46 +0000 (23:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/ifacecheck/src/xmlparser.cpp

index 003eac89f1390f975a0b26e38a1aa184c2d3234d..b36933174791e0ad42b79e561ad469e7245a81b9 100644 (file)
@@ -165,7 +165,7 @@ void wxArgumentType::SetDefaultValue(const wxString& defval, const wxString& def
     // Note: we adjust the aesthetic form of the m_strDefaultValue string for the "modify mode"
     //       of ifacecheck: we may need to write it out in an interface header
 
-    wxString *p;
+    wxString *p wxDUMMY_INITIALIZE(NULL);
     for (int i=0; i<2; i++)     // to avoid copying&pasting the code!
     {
         if (i == 0) p = &m_strDefaultValue;