]> git.saurik.com Git - wxWidgets.git/commitdiff
Work around harmless g++ warning about possible uninitialized variable.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Apr 2013 10:36:00 +0000 (10:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Apr 2013 10:36:00 +0000 (10:36 +0000)
Return from the function before using the variables in the (impossible) case
they are actually not initialized.

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

src/generic/timectrlg.cpp

index f6aaa2317eb6beef1a53ff1d72a3a02c132e642e..d649cd885c5228cc876c89289877b4df5121fcfc 100644 (file)
@@ -480,6 +480,7 @@ private:
                 case Field_AMPM:
                 case Field_Max:
                     wxFAIL_MSG( "Invalid field" );
+                    return;
             }
 
             // Check if the new value is acceptable. If not, we just handle