]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress bogus g++ warnings about uninitialized variables.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jun 2010 12:19:04 +0000 (12:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jun 2010 12:19:04 +0000 (12:19 +0000)
The variables are always initialized but for some reason (at least the Apple
version of) g++ gives warnings for them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/propgrid/propgrid.cpp

index 8cbb86316f236db11762376b79b41993c0de5a6c..e2566c7dc0d8761f4c71d8f41bf8c8bf80c3dd80 100644 (file)
@@ -3047,8 +3047,8 @@ void FormMain::OnCatColours( wxCommandEvent& event )
 
 void FormMain::OnSelectStyle( wxCommandEvent& WXUNUSED(event) )
 {
-    int style;
-    int extraStyle;
+    int style = 0;
+    int extraStyle = 0;
 
     {
         wxArrayString chs;