]> git.saurik.com Git - wxWidgets.git/commitdiff
unused parameter warnings suppressed
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 11 May 1999 12:37:53 +0000 (12:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 11 May 1999 12:37:53 +0000 (12:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 files changed:
include/wx/valgen.h
src/common/imaggif.cpp
src/common/imagjpeg.cpp
src/common/log.cpp
src/common/prntbase.cpp
src/common/string.cpp
src/common/tbarbase.cpp
src/common/wincmn.cpp
src/generic/colrdlgg.cpp
src/generic/fontdlgg.cpp
src/generic/prntdlgg.cpp
src/gtk/notebook.cpp
src/gtk1/notebook.cpp

index 009db0c2dc1d125dd2b1748e13dfe7edd3876a83..8fa29d664204fbf8261c12bbbad22275b0a186d8 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     Jan 22 1999
 // RCS-ID:
 // Copyright:   (c) 1999 Kevin Smith
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_VALGENH__
@@ -33,18 +33,18 @@ public:
   // if you're passing a reference to a validator.
   // Another possibility is to always pass a pointer to a new validator
   // (so the calling code can use a copy constructor of the relevant class).
-  virtual wxObject *Clone(void) const { return new wxGenericValidator(*this); }
+  virtual wxObject *Clone() const { return new wxGenericValidator(*this); }
   bool Copy(const wxGenericValidator& val);
 
   // Called when the value in the window must be validated.
   // This function can pop up an error message.
-  virtual bool Validate(wxWindow *parent)      {return TRUE;}
+  virtual bool Validate(wxWindow * WXUNUSED(parent)) { return TRUE; }
 
   // Called to transfer data to the window
-  virtual bool TransferToWindow(void);
+  virtual bool TransferToWindow();
 
   // Called to transfer data to the window
-  virtual bool TransferFromWindow(void);
+  virtual bool TransferFromWindow();
 
 protected:
   void Initialize();
@@ -55,4 +55,4 @@ protected:
   wxArrayInt* m_pArrayInt;
 };
 
-#endif // _WX_VALGENH__
+#endif    // _WX_VALGENH__
index cae432499b8d68dcdf41d99ed3034f3fb4da57cc..596c9932d5d5f2929bef3d160f75f962c937d7ad 100644 (file)
@@ -413,7 +413,8 @@ bool wxGIFHandler::LoadFile( wxImage *image, wxInputStream& stream )
     return TRUE;
 }
 
-bool wxGIFHandler::SaveFile( wxImage *image, wxOutputStream& stream )
+bool wxGIFHandler::SaveFile( wxImage * WXUNUSED(image),
+                             wxOutputStream& WXUNUSED(stream) )
 {
     wxLogDebug(_T("wxGIFHandler is read-only!!"));
     return FALSE;
index 5e5be5b20edc0e6b11dd7b01b3eae599d961a7b7..07bc8934cbb62356ec23e295de1ccd44faac9220 100644 (file)
@@ -76,11 +76,11 @@ typedef struct {
 
 typedef my_source_mgr * my_src_ptr;
 
-METHODDEF(void) my_init_source ( j_decompress_ptr cinfo )
+METHODDEF(void) my_init_source ( j_decompress_ptr WXUNUSED(cinfo) )
 {
 }
 
-METHODDEF(boolean) my_fill_input_buffer ( j_decompress_ptr cinfo )
+METHODDEF(boolean) my_fill_input_buffer ( j_decompress_ptr WXUNUSED(cinfo) )
 {
     return TRUE;
 }
index 243df81ac1adef7941ba056b3af6e25cd59da7c1..dec2e2148226be5cdfa9c2b04d1bf172b6075bf6 100644 (file)
@@ -349,7 +349,7 @@ void wxLog::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
     }
 }
 
-void wxLog::DoLogString(const wxChar *WXUNUSED(szString), time_t t)
+void wxLog::DoLogString(const wxChar *WXUNUSED(szString), time_t WXUNUSED(t))
 {
     wxFAIL_MSG(_T("DoLogString must be overriden if it's called."));
 }
@@ -371,7 +371,7 @@ wxLogStderr::wxLogStderr(FILE *fp)
         m_fp = fp;
 }
 
-void wxLogStderr::DoLogString(const wxChar *szString, time_t t)
+void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
 {
     wxString str(szString);
     str << _T('\n');
@@ -399,7 +399,7 @@ wxLogStream::wxLogStream(ostream *ostr)
         m_ostr = ostr;
 }
 
-void wxLogStream::DoLogString(const wxChar *szString, time_t t)
+void wxLogStream::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
 {
     (*m_ostr) << wxConv_libc.cWX2MB(szString) << endl << flush;
 }
@@ -805,7 +805,7 @@ void wxLogWindow::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
     m_bHasMessages = TRUE;
 }
 
-void wxLogWindow::DoLogString(const wxChar *szString, time_t t)
+void wxLogWindow::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
 {
     // put the text into our window
     wxTextCtrl *pText = m_pLogFrame->TextCtrl();
index 5a95be8d6acfbf5b790d0ee4c193a3c357fe6209..1306c71e5bc61836e08420836206f5a2c34f7d57 100644 (file)
@@ -430,7 +430,7 @@ wxPreviewFrame::~wxPreviewFrame()
 {
 }
 
-void wxPreviewFrame::OnCloseWindow(wxCloseEvent& event)
+void wxPreviewFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
 {
     MakeModal(FALSE);
 
index f7ce5fafaea5ebeae6c92cab23a6cd76212ddeac..db8db9a0041acd46a66656a623dfe208bd91f866 100644 (file)
@@ -1896,12 +1896,16 @@ static char utf7_setB[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 #endif
 
 // TODO: write actual implementations of UTF-7 here
-size_t wxMBConvUTF7::MB2WC(wchar_t *buf, const char *psz, size_t n) const
+size_t wxMBConvUTF7::MB2WC(wchar_t * WXUNUSED(buf),
+                           const char * WXUNUSED(psz),
+                           size_t WXUNUSED(n)) const
 {
   return 0;
 }
 
-size_t wxMBConvUTF7::WC2MB(char *buf, const wchar_t *psz, size_t n) const
+size_t wxMBConvUTF7::WC2MB(char * WXUNUSED(buf),
+                           const wchar_t * WXUNUSED(psz),
+                           size_t WXUNUSED(n)) const
 {
   return 0;
 }
index b71f343ad536376d25820297f85207dfadd3f847..ae86a28759019aab50bbbce9eecdf34984decce2 100644 (file)
@@ -724,7 +724,13 @@ void wxToolBarBase::ViewStart (int *x, int *y) const
   *y = m_yScrollPosition;
 }
 
-void wxToolBarBase::OnIdle(wxIdleEvent& event)
+void wxToolBarBase::OnIdle(wxIdleEvent&
+#ifdef __WXGTK__
+                            WXUNUSED(event)
+#else
+                            event
+#endif
+                          )
 {
 #ifndef __WXGTK__
     wxWindow::OnIdle(event);
index 7b710bd120c9ef22217ff0bb1d2c38e50c0b2304..fd7ded32acbc7a10716bbb0e39957b0126a75b6b 100644 (file)
@@ -138,8 +138,8 @@ void wxWindowBase::InitBase()
 // common part of window creation process
 bool wxWindowBase::CreateBase(wxWindowBase *parent,
                               wxWindowID id,
-                              const wxPoint& pos,
-                              const wxSize& size,
+                              const wxPoint& WXUNUSED(pos),
+                              const wxSize& WXUNUSED(size),
                               long style,
                               const wxString& name)
 {
@@ -562,7 +562,7 @@ wxWindow *wxWindowBase::FindWindow( const wxString& name )
 // dialog oriented functions
 // ----------------------------------------------------------------------------
 
-void wxWindowBase::MakeModal(bool modal)
+void wxWindowBase::MakeModal(bool WXUNUSED(modal))
 {
     wxFAIL_MSG("TODO");
 }
index f04731070bd738cf692d20d846a2a1765f9d913d..5e84552d4aa71a2823953cb7f483b2ab84cc7552 100644 (file)
@@ -130,7 +130,7 @@ wxGenericColourDialog::~wxGenericColourDialog(void)
 {
 }
 
-void wxGenericColourDialog::OnCloseWindow(wxCloseEvent& event)
+void wxGenericColourDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
 {
   EndModal(wxID_CANCEL);
 }
index 60b454b720cc04b1d8544d4df8301aa67ed4d881..c48439da7fd685518a54d524dda9fd44b83ac2fe 100644 (file)
@@ -133,7 +133,7 @@ wxGenericFontDialog::~wxGenericFontDialog(void)
 {
 }
 
-void wxGenericFontDialog::OnCloseWindow(wxCloseEvent& event)
+void wxGenericFontDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
 {
   EndModal(wxID_CANCEL);
 }
index 45682912d36f105755d839a4a5444745afefca2b..10ab2dcf4828086a7247cb7ce6787ce8ca5f3c56 100644 (file)
@@ -125,7 +125,7 @@ wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent,
     Init(parent);
 }
 
-void wxGenericPrintDialog::Init(wxWindow *parent)
+void wxGenericPrintDialog::Init(wxWindow * WXUNUSED(parent))
 {
   //    wxDialog::Create(parent, -1, _("Print"), wxPoint(0, 0), wxSize(600, 600),
   //                     wxDEFAULT_DIALOG_STYLE | wxDIALOG_MODAL | wxTAB_TRAVERSAL);
index ccb0e8162337ad64f6f258072cd0816f250e37dd..a5363e40a9b8f3327fe49893f2e858cb781ba60e 100644 (file)
@@ -528,7 +528,7 @@ void wxNotebook::SetPadding( const wxSize &WXUNUSED(padding) )
     wxFAIL_MSG( _T("wxNotebook::SetPadding not implemented") );
 }
 
-void wxNotebook::SetTabSize(const wxSize& sz)
+void wxNotebook::SetTabSize(const wxSize& WXUNUSED(sz))
 {
     wxFAIL_MSG( _T("wxNotebook::SetTabSize not implemented") );
 }
index ccb0e8162337ad64f6f258072cd0816f250e37dd..a5363e40a9b8f3327fe49893f2e858cb781ba60e 100644 (file)
@@ -528,7 +528,7 @@ void wxNotebook::SetPadding( const wxSize &WXUNUSED(padding) )
     wxFAIL_MSG( _T("wxNotebook::SetPadding not implemented") );
 }
 
-void wxNotebook::SetTabSize(const wxSize& sz)
+void wxNotebook::SetTabSize(const wxSize& WXUNUSED(sz))
 {
     wxFAIL_MSG( _T("wxNotebook::SetTabSize not implemented") );
 }