]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fixes.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 5 Apr 2005 10:23:27 +0000 (10:23 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 5 Apr 2005 10:23:27 +0000 (10:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/debugrpt.cpp
src/common/mstream.cpp

index 2f7a5e602b11341b0ea9a944d307b7ba9dae4435..42879854d244d30632a5969fa3e5d5665a0c2ed9 100644 (file)
@@ -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);
index bab2afe326febcfd2d7a1e3569cd72cf44da609b..122d6e7baaff9dd2fff33227d7b3b80d837eaaa0 100644 (file)
@@ -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;