From d64dc1970478912cb68ee7bd75a5573fd9df6806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 5 Apr 2005 10:23:27 +0000 Subject: [PATCH] Warning fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/debugrpt.cpp | 4 ++-- src/common/mstream.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/debugrpt.cpp b/src/common/debugrpt.cpp index 2f7a5e602b..42879854d2 100644 --- a/src/common/debugrpt.cpp +++ b/src/common/debugrpt.cpp @@ -329,8 +329,8 @@ bool wxDebugReport::DoAddLoadedModules(wxXmlNode *nodeModules) if ( !path.empty() ) nodeModule->AddProperty(_T("path"), path); - void *addr; - size_t len; + void *addr = NULL; + size_t len = 0; if ( info.GetAddress(&addr, &len) ) { HexProperty(nodeModule, _T("address"), (unsigned long)addr); diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index bab2afe326..122d6e7baa 100644 --- a/src/common/mstream.cpp +++ b/src/common/mstream.cpp @@ -54,7 +54,7 @@ wxMemoryInputStream::wxMemoryInputStream(const void *data, size_t len) wxMemoryInputStream::wxMemoryInputStream(const wxMemoryOutputStream& stream) { - int len = stream.GetLength(); + ssize_t len = (ssize_t)stream.GetLength(); if (len == wxInvalidOffset) { m_i_streambuf = NULL; m_lasterror = wxSTREAM_EOF;