]> git.saurik.com Git - wxWidgets.git/commitdiff
No real changes, just suppress a harmless warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Feb 2013 13:22:31 +0000 (13:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Feb 2013 13:22:31 +0000 (13:22 +0000)
g++ warned about possibly uninitialized variable, so initialize it in its
declaration even if it was actually already always initialized in the branches
where it could be used.

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

src/generic/timectrlg.cpp

index 6a5d13c6cf940446916f74eda1d36089fa4f1c1f..f6aaa2317eb6beef1a53ff1d72a3a02c132e642e 100644 (file)
@@ -270,7 +270,7 @@ private:
 
     void OnTextClick(wxMouseEvent& event)
     {
-        Field field wxDUMMY_INITIALIZE(Field_Max);
+        Field field = Field_Max; // Initialize just to suppress warnings.
         long pos;
         switch ( m_text->HitTest(event.GetPosition(), &pos) )
         {