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
This commit is contained in:
@@ -263,7 +263,7 @@ wxLog::OnLog(wxLogLevel level,
|
|||||||
|
|
||||||
// handle extra data which may be passed to us by wxLogXXX()
|
// handle extra data which may be passed to us by wxLogXXX()
|
||||||
wxString prefix, suffix;
|
wxString prefix, suffix;
|
||||||
wxUIntPtr num;
|
wxUIntPtr num = 0;
|
||||||
if ( info.GetNumValue(wxLOG_KEY_SYS_ERROR_CODE, &num) )
|
if ( info.GetNumValue(wxLOG_KEY_SYS_ERROR_CODE, &num) )
|
||||||
{
|
{
|
||||||
long err = static_cast<long>(num);
|
long err = static_cast<long>(num);
|
||||||
|
@@ -373,7 +373,7 @@ void wxLogGui::DoLogRecord(wxLogLevel level,
|
|||||||
wxFrame *pFrame = NULL;
|
wxFrame *pFrame = NULL;
|
||||||
|
|
||||||
// check if the frame was passed to us explicitly
|
// check if the frame was passed to us explicitly
|
||||||
wxUIntPtr ptr;
|
wxUIntPtr ptr = NULL;
|
||||||
if ( info.GetNumValue(wxLOG_KEY_FRAME, &ptr) )
|
if ( info.GetNumValue(wxLOG_KEY_FRAME, &ptr) )
|
||||||
{
|
{
|
||||||
pFrame = static_cast<wxFrame *>(wxUIntToPtr(ptr));
|
pFrame = static_cast<wxFrame *>(wxUIntToPtr(ptr));
|
||||||
|
Reference in New Issue
Block a user