From: Vadim Zeitlin Date: Fri, 3 Jul 2009 12:14:51 +0000 (+0000) Subject: suppress harmless warning about possibly uninitialized variable in ParseRfc822Date... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5ec58699d09c1ce060c745097ac11331fc32ea67 suppress harmless warning about possibly uninitialized variable in ParseRfc822Date() in OSX build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetimefmt.cpp b/src/common/datetimefmt.cpp index 03a2429d0c..e6544edd23 100644 --- a/src/common/datetimefmt.cpp +++ b/src/common/datetimefmt.cpp @@ -811,7 +811,7 @@ wxDateTime::ParseRfc822Date(const wxString& date, wxString::const_iterator *end) return false; // 7. now the interesting part: the timezone - int offset wxDUMMY_INITIALIZE(0); + int offset = 0; // just to suppress warnings if ( *p == '-' || *p == '+' ) { // the explicit offset given: it has the form of hhmm