]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
don't define functions unused under CE when compiling for it (avoids warnings)
[wxWidgets.git] / src / common / stream.cpp
index 2770a5df20a5cb9946dc1d641f1a57269cafa3a5..1f72c00bd6226808dc8e0bdab23d563fb10bfb6f 100644 (file)
@@ -18,7 +18,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "stream.h"
 #endif
 
@@ -454,7 +454,7 @@ size_t wxStreamBuffer::Write(const void *buffer, size_t size)
         m_stream->Reset();
     }
 
-    size_t ret = 0;
+    size_t ret;
 
     if ( !HasBuffer() && m_fixed )
     {