From 0758c46ee65053bc70bd0ef5a73fb30aeec7986c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 Jul 2009 20:48:32 +0000 Subject: [PATCH 1/1] fix harmless warnings about uninitialized (not really) variables in MSVC release build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/log.cpp | 2 +- src/generic/logg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index 0afb906f28..e0686ce3d8 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -263,7 +263,7 @@ wxLog::OnLog(wxLogLevel level, // handle extra data which may be passed to us by wxLogXXX() wxString prefix, suffix; - wxUIntPtr num; + wxUIntPtr num = 0; if ( info.GetNumValue(wxLOG_KEY_SYS_ERROR_CODE, &num) ) { long err = static_cast(num); diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index b4fe435373..ae690ab5ff 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -373,7 +373,7 @@ void wxLogGui::DoLogRecord(wxLogLevel level, wxFrame *pFrame = NULL; // check if the frame was passed to us explicitly - wxUIntPtr ptr; + wxUIntPtr ptr = NULL; if ( info.GetNumValue(wxLOG_KEY_FRAME, &ptr) ) { pFrame = static_cast(wxUIntToPtr(ptr)); -- 2.47.2