]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed some unused parameter warnings; compile error in dialup.cpp corrected;
authorJulian Smart <julian@anthemion.co.uk>
Mon, 4 Oct 1999 15:07:20 +0000 (15:07 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 4 Oct 1999 15:07:20 +0000 (15:07 +0000)
some commits are redundant (sorry)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

29 files changed:
distrib/msw/generic.rsp
distrib/msw/glcanvas.rsp
distrib/msw/gtk.rsp
distrib/msw/makefile.rsp
distrib/msw/msw.rsp
distrib/msw/ogl.rsp
include/wx/dialup.h
include/wx/generic/helphtml.h
include/wx/helpbase.h
src/common/fontcmn.cpp
src/common/image.cpp
src/common/imagpcx.cpp
src/common/stream.cpp
src/generic/filedlgg.cpp
src/generic/helpwxht.cpp
src/generic/logg.cpp
src/gtk/dataobj.cpp
src/gtk/font.cpp
src/gtk/fontdlg.cpp
src/gtk/frame.cpp
src/gtk/mdi.cpp
src/gtk/window.cpp
src/gtk1/dataobj.cpp
src/gtk1/font.cpp
src/gtk1/fontdlg.cpp
src/gtk1/frame.cpp
src/gtk1/mdi.cpp
src/gtk1/window.cpp
src/unix/dialup.cpp

index b526344be2915f8742bfd380eb6aab830a8546d7..8e27b835b27b88c08b909ca7e15d359a46cd9798 100644 (file)
@@ -20,6 +20,12 @@ makefile.unx.in
 distrib/msw/*.rsp
 distrib/msw/*.bat
 distrib/msw/tardist
+distrib/msw/tmake/*.t
+distrib/msw/tmake/Makefile
+distrib/msw/tmake/filelist.txt
+distrib/msw/tmake/makeall.bat
+distrib/msw/tmake/makeall.sh
+distrib/msw/tmake/wxwin.pro
 distrib/gtk/*
 
 locale/*.po
@@ -37,6 +43,7 @@ docs/bugs.txt
 docs/*.htm
 docs/html/*.htm
 docs/html/*.gif
+docs/html/*.png
 
 src/*.inc
 src/mkdir
@@ -66,6 +73,7 @@ src/html/*.h
 src/html/bitmaps/*.xpm
 
 src/unix/*.cpp
+src/unix/*.c
 
 src/png/*.c
 src/png/*.h
@@ -97,6 +105,7 @@ include/wx/protocol/*.h
 include/wx/wx_setup.vms
 include/wx/common/*.h
 include/wx/generic/*.h
+include/wx/generic/*.xpm
 include/wx/unix/*.h
 include/wx/html/*.h
 include/wx/html/msw/*.bmp
index 3269bf0ae8d0255f5f6b4a6c8fe98c7dbc0456b5..12a4744fa4266a22f7f35f283734a50954da57ef 100644 (file)
@@ -1,3 +1,4 @@
+utils/glcanvas/Makefile.in
 utils/glcanvas/docs/*.*
 utils/glcanvas/win/*.cpp
 utils/glcanvas/win/*.h
index 584c874cf04c81df4b091e1318a78a5d30397258..ff416c8c37fb34acf72b49e7f4bab5fb0159fdaa 100644 (file)
@@ -1,3 +1,5 @@
+configure
+
 distrib/gtk/copy_src
 distrib/gtk/README.txt
 distrib/gtk/Setup
@@ -8,6 +10,7 @@ docs/gtk/COPYING.LIB
 docs/gtk/makewxgtk
 
 include/wx/gtk/*.h
+include/wx/gtk/*.xpm
 include/install-sh
 include/wx/install-sh
 
index b3c072fcb94449c8a2254e93dbc188582501a800..ece5e143cefe8513e78afd7da49f6f4d494a1c31 100644 (file)
@@ -1,3 +1,4 @@
+Makefile.in
 src/Makefile
 locale/Makefile
 samples/Makefile.in
index 29341786163f021bd5ac516fe35b4c7d5e9687f0..db7b08d23d091bb6d828b28588820581bb2320ee 100644 (file)
@@ -5,7 +5,6 @@ docs/wine/COPYING.LIB
 
 distrib/msw/*.rsp
 distrib/msw/*.bat
-distrib/msw/tmake/*.t
 
 tools/gettext/xgettext.exe
 tools/gettext/msgfmt.exe
index 72d552d4f017466043667e7c66eb3e02990729ed..8a742c2744b4edee32def2207f94e8f6072e6e66 100644 (file)
@@ -1,3 +1,4 @@
+utils/ogl/Makefile.in
 utils/ogl/Makefile
 
 utils/ogl/src/*.cpp
index 032ad9eac7d5497f01d078e3619cfe3f7d6b4be5..8ff449891084c3a323fd70c20962bd5874bdc95d 100644 (file)
 #ifndef _WX_NET_H
 #define _WX_NET_H
 
+#ifdef __GNUG__
+    #pragma interface "dialup.h"
+#endif
+
 #if wxUSE_DIALUP_MANAGER
 
 // ----------------------------------------------------------------------------
index 68bdd47de529f547ace43945e33074c99f4548dd..6bf25dff3e7ef880fb620c56beab446bf14dd0cb 100644 (file)
@@ -120,18 +120,18 @@ DECLARE_ABSTRACT_CLASS(wxHTMLHelpControllerBase)
    virtual bool DisplayHelp(wxString const &) = 0;
 
    /// Allows one to override the default settings for the help frame.
-   virtual void SetFrameParameters(const wxString &title,
-                                   const wxSize &size,
-                                   const wxPoint &pos = wxDefaultPosition,
-                                   bool newFrameEachTime = FALSE)
+   virtual void SetFrameParameters(const wxString& WXUNUSED(title),
+                                   const wxSize& WXUNUSED(size),
+                                   const wxPoint& WXUNUSED(pos) = wxDefaultPosition,
+                                   bool WXUNUSED(newFrameEachTime) = FALSE)
       {
          // does nothing by default
       }
    /// Obtains the latest settings used by the help frame and the help 
    /// frame.
-   virtual wxFrame *GetFrameParameters(wxSize *size = NULL,
-                                   wxPoint *pos = NULL,
-                                   bool *newFrameEachTime = NULL)
+   virtual wxFrame *GetFrameParameters(wxSize *WXUNUSED(size) = NULL,
+                                   wxPoint *WXUNUSED(pos) = NULL,
+                                   bool *WXUNUSED(newFrameEachTime) = NULL)
       {
          return (wxFrame*) NULL;// does nothing by default
       }
index 3ef8f7e1f949569766bf9006e8f2424fba0a0823..9479573ecb5b935d84e22d120888e4da1cc99eff 100644 (file)
@@ -40,7 +40,7 @@ class WXDLLEXPORT wxHelpControllerBase: public wxObject
   // server is only required when implementing TCP/IP-based
   // help controllers.
   virtual bool Initialize(const wxString& WXUNUSED(file), int WXUNUSED(server) ) { return FALSE; }
-  virtual bool Initialize(const wxString& file) { return FALSE; }
+  virtual bool Initialize(const wxString& WXUNUSED(file)) { return FALSE; }
 
   // Set viewer: only relevant to some kinds of controller
   virtual void SetViewer(const wxString& WXUNUSED(viewer), long WXUNUSED(flags) = 0) {}
@@ -52,18 +52,18 @@ class WXDLLEXPORT wxHelpControllerBase: public wxObject
   virtual bool DisplayBlock(long blockNo) = 0;
   virtual bool KeywordSearch(const wxString& k) = 0;
   /// Allows one to override the default settings for the help frame.
-  virtual void SetFrameParameters(const wxString &title,
-                                   const wxSize &size,
-                                   const wxPoint &pos = wxDefaultPosition,
-                                   bool newFrameEachTime = FALSE)
+  virtual void SetFrameParameters(const wxString& WXUNUSED(title),
+                                   const wxSize& WXUNUSED(size),
+                                   const wxPoint& WXUNUSED(pos) = wxDefaultPosition,
+                                   bool WXUNUSED(newFrameEachTime) = FALSE)
       {
          // does nothing by default
       }
    /// Obtains the latest settings used by the help frame and the help 
    /// frame.
-   virtual wxFrame *GetFrameParameters(wxSize *size = NULL,
-                                   wxPoint *pos = NULL,
-                                   bool *newFrameEachTime = NULL)
+   virtual wxFrame *GetFrameParameters(wxSize *WXUNUSED(size) = NULL,
+                                   wxPoint *WXUNUSED(pos) = NULL,
+                                   bool *WXUNUSED(newFrameEachTime) = NULL)
       {
          return (wxFrame*) NULL;// does nothing by default
       }
index 57a8cf3cc7807125e3523c90e432725609c82c7a..f7a0726e426eb830bceb9430cc1cdd7c711f3a5d 100644 (file)
@@ -60,12 +60,12 @@ wxFont& wxFont::operator=(const wxFont& font)
 // VZ: is it correct to compare pointers and not the contents? (FIXME)
 bool wxFontBase::operator==(const wxFont& font) const
 {
-    return m_refData == font.m_refData;
+    return GetFontData() == font.GetFontData();
 }
 
 bool wxFontBase::operator!=(const wxFont& font) const
 {
-    return m_refData != font.m_refData;
+    return GetFontData() != font.GetFontData();
 }
 
 wxString wxFontBase::GetFamilyString() const
index ab36e52be6d04b5260e104fd2823efe0c9cd274f..e7d5fc7eae1987f8d7ea33ba13a72e8fc56284fb 100644 (file)
@@ -642,7 +642,7 @@ bool wxImageHandler::SaveFile( wxImage *WXUNUSED(image), wxOutputStream& WXUNUSE
     return FALSE;
 }
 
-bool wxImageHandler::CanRead( wxInputStream& stream )
+bool wxImageHandler::CanRead( wxInputStream& WXUNUSED(stream) )
 {
     return FALSE;
 }
index 2c29b90489a79dfdf102b04f701e14a3859d3d3d..20dd5ff749ada7a9622a5e15dc892038acf4dec6 100644 (file)
@@ -36,7 +36,7 @@
 // PCX decoding
 //-----------------------------------------------------------------------------
 
-void RLEencode(unsigned char *p, unsigned int size, wxOutputStream& s)
+void RLEencode(unsigned char *WXUNUSED(p), unsigned int WXUNUSED(size), wxOutputStream& WXUNUSED(s))
 {
 }
 
@@ -255,7 +255,7 @@ bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose
     return TRUE;
 }
 
-bool wxPCXHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbose )
+bool wxPCXHandler::SaveFile( wxImage *WXUNUSED(image), wxOutputStream& WXUNUSED(stream), bool verbose )
 {
     if (verbose)
         wxLogError(_T("wxPCXHandler::SaveFile still not implemented"));
index 5c7ba37d3f3d967e17b8c7c6eb4b69c2211b053d..7fdb36e3b84eed5ef5c717851b1f09ea3cf49f46 100644 (file)
@@ -677,7 +677,7 @@ size_t wxCountingOutputStream::GetSize() const
   return m_lastcount;
 }
 
-size_t wxCountingOutputStream::OnSysWrite(const void *buffer, size_t size)
+size_t wxCountingOutputStream::OnSysWrite(const void *WXUNUSED(buffer), size_t size)
 {
   m_currentPos += size;
   if (m_currentPos > m_lastcount) m_lastcount = m_currentPos;
index f8d23ba8ef051b3d33e21bc2214aafc017e21dbe..fb4ea8ab417c3ff97cd45af130e03a67a4ace5ab 100644 (file)
@@ -817,7 +817,7 @@ void wxFileDialog::HandleAction( const wxString &fn )
     wxDialog::OnOK(event);
 }
 
-void wxFileDialog::OnListOk( wxCommandEvent &event )
+void wxFileDialog::OnListOk( wxCommandEvent &WXUNUSED(event) )
 {
     HandleAction( m_text->GetValue() );
 }
@@ -881,7 +881,7 @@ wxString
 wxFileSelectorEx(const wxChar *message,
                  const wxChar *default_path,
                  const wxChar *default_filename,
-                 int *indexDefaultExtension,
+                 int *WXUNUSED(indexDefaultExtension),
                  const wxChar *wildcard,
                  int flags,
                  wxWindow *parent,
index 1fdb91028cb753d66266cf2f3835b721b035f50f..dc7f167a13639f6680f2dbeda0034429a8104195 100644 (file)
@@ -220,7 +220,7 @@ wxHelpFrame::~wxHelpFrame()
 }
 
 void
-wxHelpFrame::OnClose(wxCloseEvent &ev)
+wxHelpFrame::OnClose(wxCloseEvent &WXUNUSED(ev))
 {
    wxASSERT(m_controller);
    m_controller->m_Frame = NULL;
index c3085720e5a143bb5933bc5cc27675b51c3c1c7d..0714d5910fa621c58075ae77e4d15ce259b79aba 100644 (file)
@@ -90,7 +90,7 @@ wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl)
     m_pTextCtrl = pTextCtrl;
 }
 
-void wxLogTextCtrl::DoLogString(const wxChar *szString, time_t t)
+void wxLogTextCtrl::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
 {
     wxString msg;
     TimeStamp(&msg);
index 1e87427cd71d24e8a2ae581faca475e00b0c5c77..3af8442a63c67f1d0e1ea69cd7ff20fd6b9ea465 100644 (file)
@@ -433,7 +433,7 @@ size_t wxBitmapDataObject::GetSize() const
     return m_pngSize;
 }
 
-void wxBitmapDataObject::WriteBitmap( const wxBitmap &bitmap, void *dest ) const
+void wxBitmapDataObject::WriteBitmap( const wxBitmap &WXUNUSED(bitmap), void *dest ) const
 {
 //    if (m_bitmap == bitmap)
         memcpy( dest, m_pngData, m_pngSize );
index 958d7db27016cf7fad52a2bec3797565860775d7..ec3b8427b2cbb4b78abb6307269b2537a1dd40c0 100644 (file)
@@ -150,7 +150,7 @@ void wxFont::Init()
         wxTheFontList->Append( this );
 }
 
-wxFont::wxFont( GdkFont *font, char *xFontName )
+wxFont::wxFont( GdkFont *WXUNUSED(font), char *xFontName )
 {
     if (!xFontName)
         return;
index 6634bc324361a6d676adae75733a7be13ca47a70..163c5466143701596f4d31a52f1ef7b837f89a3d 100644 (file)
@@ -100,7 +100,7 @@ void gtk_fontdialog_cancel_callback( GtkWidget *WXUNUSED(w), wxFontDialog *dialo
 
 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog,wxDialog)
 
-wxFontDialog::wxFontDialog( wxWindow *parent, wxFontData *data )
+wxFontDialog::wxFontDialog( wxWindow *parent, wxFontData *WXUNUSED(data) )
 {
     m_needParent = FALSE;
 
index 20ea85ac9f5a3c96fed3c526110ee632b5f52e5d..07944b9b68e5b6868901a4b8dc54bf96337a1921 100644 (file)
@@ -137,7 +137,7 @@ static void gtk_toolbar_attached_callback( GtkWidget *WXUNUSED(widget), GtkWidge
 // "child_detached" of tool bar
 //-----------------------------------------------------------------------------
 
-static void gtk_toolbar_detached_callback( GtkWidget *widget, GtkWidget *WXUNUSED(child), wxFrame *win )
+static void gtk_toolbar_detached_callback( GtkWidget *WXUNUSED(widget), GtkWidget *WXUNUSED(child), wxFrame *win )
 {
     if (g_isIdle)
         wxapp_install_idle_handler();
@@ -191,7 +191,7 @@ gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventConfigure *ev
    so we do this directly after realization */
 
 static gint
-gtk_frame_realized_callback( GtkWidget *widget, wxFrame *win )
+gtk_frame_realized_callback( GtkWidget *WXUNUSED(widget), wxFrame *win )
 {
     if (g_isIdle)
         wxapp_install_idle_handler();
index 1be26bfcd70d7ba8fae5c494070bdbe420882fb7..784dc97f730167e81b47de159f431b89e7c2272e 100644 (file)
@@ -49,7 +49,7 @@ extern wxList wxPendingDelete;
 
 static void gtk_mdi_page_change_callback(GtkNotebook *WXUNUSED(widget),
                                               GtkNotebookPage *WXUNUSED(page),
-                                              gint page,
+                                              gint WXUNUSED(page),
                                               wxMDIParentFrame *parent )
 {
     if (g_isIdle) 
index ade2fa716ac9d489faa05cf2d42836a4e264d8f7..dd4d3e4b9eb8730879ebb0298d3764c16073da95 100644 (file)
@@ -1648,7 +1648,7 @@ static gint gtk_scrollbar_button_press_callback( GtkRange *WXUNUSED(widget),
 // "button_release_event" from scrollbar
 //-----------------------------------------------------------------------------
 
-static gint gtk_scrollbar_button_release_callback( GtkRange *widget,
+static gint gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget),
                                                    GdkEventButton *WXUNUSED(gdk_event),
                                                    wxWindow *win )
 {
index 1e87427cd71d24e8a2ae581faca475e00b0c5c77..3af8442a63c67f1d0e1ea69cd7ff20fd6b9ea465 100644 (file)
@@ -433,7 +433,7 @@ size_t wxBitmapDataObject::GetSize() const
     return m_pngSize;
 }
 
-void wxBitmapDataObject::WriteBitmap( const wxBitmap &bitmap, void *dest ) const
+void wxBitmapDataObject::WriteBitmap( const wxBitmap &WXUNUSED(bitmap), void *dest ) const
 {
 //    if (m_bitmap == bitmap)
         memcpy( dest, m_pngData, m_pngSize );
index 958d7db27016cf7fad52a2bec3797565860775d7..ec3b8427b2cbb4b78abb6307269b2537a1dd40c0 100644 (file)
@@ -150,7 +150,7 @@ void wxFont::Init()
         wxTheFontList->Append( this );
 }
 
-wxFont::wxFont( GdkFont *font, char *xFontName )
+wxFont::wxFont( GdkFont *WXUNUSED(font), char *xFontName )
 {
     if (!xFontName)
         return;
index 6634bc324361a6d676adae75733a7be13ca47a70..163c5466143701596f4d31a52f1ef7b837f89a3d 100644 (file)
@@ -100,7 +100,7 @@ void gtk_fontdialog_cancel_callback( GtkWidget *WXUNUSED(w), wxFontDialog *dialo
 
 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog,wxDialog)
 
-wxFontDialog::wxFontDialog( wxWindow *parent, wxFontData *data )
+wxFontDialog::wxFontDialog( wxWindow *parent, wxFontData *WXUNUSED(data) )
 {
     m_needParent = FALSE;
 
index 20ea85ac9f5a3c96fed3c526110ee632b5f52e5d..07944b9b68e5b6868901a4b8dc54bf96337a1921 100644 (file)
@@ -137,7 +137,7 @@ static void gtk_toolbar_attached_callback( GtkWidget *WXUNUSED(widget), GtkWidge
 // "child_detached" of tool bar
 //-----------------------------------------------------------------------------
 
-static void gtk_toolbar_detached_callback( GtkWidget *widget, GtkWidget *WXUNUSED(child), wxFrame *win )
+static void gtk_toolbar_detached_callback( GtkWidget *WXUNUSED(widget), GtkWidget *WXUNUSED(child), wxFrame *win )
 {
     if (g_isIdle)
         wxapp_install_idle_handler();
@@ -191,7 +191,7 @@ gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventConfigure *ev
    so we do this directly after realization */
 
 static gint
-gtk_frame_realized_callback( GtkWidget *widget, wxFrame *win )
+gtk_frame_realized_callback( GtkWidget *WXUNUSED(widget), wxFrame *win )
 {
     if (g_isIdle)
         wxapp_install_idle_handler();
index 1be26bfcd70d7ba8fae5c494070bdbe420882fb7..784dc97f730167e81b47de159f431b89e7c2272e 100644 (file)
@@ -49,7 +49,7 @@ extern wxList wxPendingDelete;
 
 static void gtk_mdi_page_change_callback(GtkNotebook *WXUNUSED(widget),
                                               GtkNotebookPage *WXUNUSED(page),
-                                              gint page,
+                                              gint WXUNUSED(page),
                                               wxMDIParentFrame *parent )
 {
     if (g_isIdle) 
index ade2fa716ac9d489faa05cf2d42836a4e264d8f7..dd4d3e4b9eb8730879ebb0298d3764c16073da95 100644 (file)
@@ -1648,7 +1648,7 @@ static gint gtk_scrollbar_button_press_callback( GtkRange *WXUNUSED(widget),
 // "button_release_event" from scrollbar
 //-----------------------------------------------------------------------------
 
-static gint gtk_scrollbar_button_release_callback( GtkRange *widget,
+static gint gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget),
                                                    GdkEventButton *WXUNUSED(gdk_event),
                                                    wxWindow *win )
 {
index ddafb960fde05c4c39528ee8b976e68ce4ece77a..85de4fa1670c2c7ede6067f44e50dc1ab5cb17ca 100644 (file)
 
 #if wxUSE_DIALUP_MANAGER
 
+#ifdef __GNUG__
+    #pragma implementation "dialup.h"
+#endif
+
 #ifndef  WX_PRECOMP
 #   include "wx/defs.h"
 #endif // !PCH
@@ -214,7 +218,7 @@ public:
       {
          m_DupMan = dupman;
       }
-   void OnTerminate(int pid, int status) const
+   void OnTerminate(int WXUNUSED(pid), int WXUNUSED(status)) const
       {
          m_DupMan->m_DialProcess = NULL;
          m_DupMan->CheckStatus(TRUE);
@@ -485,7 +489,7 @@ wxDialUpManagerImpl::CheckStatusInternal(void)
 
 /* static */
 wxDialUpManager *
-wxDialUpManager::wxDialUpManager::Create(void)
+wxDialUpManager::Create(void)
 {
    return new wxDialUpManagerImpl;
 }