unused parameter warnings suppressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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__
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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();
|
||||
|
@@ -430,7 +430,7 @@ wxPreviewFrame::~wxPreviewFrame()
|
||||
{
|
||||
}
|
||||
|
||||
void wxPreviewFrame::OnCloseWindow(wxCloseEvent& event)
|
||||
void wxPreviewFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
|
||||
{
|
||||
MakeModal(FALSE);
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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");
|
||||
}
|
||||
|
@@ -130,7 +130,7 @@ wxGenericColourDialog::~wxGenericColourDialog(void)
|
||||
{
|
||||
}
|
||||
|
||||
void wxGenericColourDialog::OnCloseWindow(wxCloseEvent& event)
|
||||
void wxGenericColourDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
|
||||
{
|
||||
EndModal(wxID_CANCEL);
|
||||
}
|
||||
|
@@ -133,7 +133,7 @@ wxGenericFontDialog::~wxGenericFontDialog(void)
|
||||
{
|
||||
}
|
||||
|
||||
void wxGenericFontDialog::OnCloseWindow(wxCloseEvent& event)
|
||||
void wxGenericFontDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
|
||||
{
|
||||
EndModal(wxID_CANCEL);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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") );
|
||||
}
|
||||
|
@@ -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") );
|
||||
}
|
||||
|
Reference in New Issue
Block a user