From: Vadim Zeitlin Date: Tue, 30 Apr 2013 10:36:00 +0000 (+0000) Subject: Work around harmless g++ warning about possible uninitialized variable. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/23855b87d791f78d00d47d8e20fad85f6d186508 Work around harmless g++ warning about possible uninitialized variable. 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 --- diff --git a/src/generic/timectrlg.cpp b/src/generic/timectrlg.cpp index f6aaa2317e..d649cd885c 100644 --- a/src/generic/timectrlg.cpp +++ b/src/generic/timectrlg.cpp @@ -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