From: Robert Roebling Date: Mon, 7 Sep 1998 18:04:27 +0000 (+0000) Subject: Suppress warnings X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e22036dc390137b9926a5f87ea08399332da0b6d?ds=inline Suppress warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/sckstrm.h b/include/wx/sckstrm.h index 3d55f1b85e..86782eddf2 100644 --- a/include/wx/sckstrm.h +++ b/include/wx/sckstrm.h @@ -25,8 +25,10 @@ class WXDLLEXPORT wxSocketOutputStream : public wxOutputStream virtual ~wxSocketOutputStream(); wxOutputStream& Write(const void *buffer, size_t size); - off_t SeekO(off_t pos, wxSeekMode mode) { return -1; } - off_t TellO() { return -1; } + off_t SeekO( off_t WXUNUSED(pos), wxSeekMode WXUNUSED(mode) ) + { return -1; } + off_t TellO() + { return -1; } bool Bad() { return m_o_socket->IsDisconnected(); } size_t LastWrite() { return m_o_socket->LastCount(); } @@ -41,8 +43,10 @@ class WXDLLEXPORT wxSocketInputStream : public wxInputStream ~wxSocketInputStream(); wxInputStream& Read(void *buffer, size_t size); - off_t SeekI(off_t pos, wxSeekMode mode) { return -1; } - off_t TellI() { return -1; } + off_t SeekI( off_t WXUNUSED(pos), wxSeekMode WXUNUSED(mode) ) + { return -1; } + off_t TellI() + { return -1; } bool Eof() { return m_i_socket->IsDisconnected(); } size_t LastRead() { return m_i_socket->LastCount(); } diff --git a/include/wx/stream.h b/include/wx/stream.h index e23ef48a58..95422e07dd 100644 --- a/include/wx/stream.h +++ b/include/wx/stream.h @@ -115,8 +115,9 @@ class WXDLLEXPORT wxInputStream { wxInputStream(wxStreamBuffer *buffer); - virtual size_t DoRead(void *buffer, size_t size) { return 0; } - virtual off_t DoSeekInput(off_t pos, wxSeekMode mode) + virtual size_t DoRead(void *WXUNUSED(buffer), size_t WXUNUSED(size) ) + { return 0; } + virtual off_t DoSeekInput( off_t WXUNUSED(pos), wxSeekMode WXUNUSED(mode) ) { return wxInvalidOffset; } virtual off_t DoTellInput() const { return wxInvalidOffset; } @@ -169,8 +170,9 @@ class WXDLLEXPORT wxOutputStream { wxOutputStream(wxStreamBuffer *buffer); - virtual size_t DoWrite(const void *buffer, size_t size) { return 0; } - virtual off_t DoSeekOutput(off_t pos, wxSeekMode mode) + virtual size_t DoWrite( const void *WXUNUSED(buffer), size_t WXUNUSED(size) ) + { return 0; } + virtual off_t DoSeekOutput( off_t WXUNUSED(pos), wxSeekMode WXUNUSED(mode) ) { return wxInvalidOffset; } virtual off_t DoTellOutput() const { return wxInvalidOffset; } diff --git a/src/common/sckipc.cpp b/src/common/sckipc.cpp index 4532de83a8..e27ead03d8 100644 --- a/src/common/sckipc.cpp +++ b/src/common/sckipc.cpp @@ -168,11 +168,11 @@ bool wxTCPServer::Create(const wxString& server_name) return TRUE; } -wxTCPServer::~wxTCPServer (void) +wxTCPServer::~wxTCPServer(void) { } -wxConnectionBase *wxTCPServer::OnAcceptConnection(const wxString& topic) +wxConnectionBase *wxTCPServer::OnAcceptConnection( const wxString& WXUNUSED(topic) ) { return new wxTCPConnection(); } diff --git a/src/common/socket.cpp b/src/common/socket.cpp index aa8a18a6b5..5ab0e09d96 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -1017,7 +1017,7 @@ bool wxSocketBase::DoRequests(wxRequestEvent req_flag) void wxSocketBase::WantSpeedBuffer(char *buffer, size_t nbytes, wxRequestEvent evt) { - int ret; + int ret = 0; switch (evt) { case EVT_PEEK: @@ -1193,7 +1193,7 @@ wxSocketClient::~wxSocketClient() // -------------------------------------------------------------- // --------- wxSocketClient Connect functions ------------------- // -------------------------------------------------------------- -bool wxSocketClient::Connect(wxSockAddress& addr_man, bool wait) +bool wxSocketClient::Connect(wxSockAddress& addr_man, bool WXUNUSED(wait) ) { struct linger linger;