use -Wunused-parameter with gcc for consistency with MSVC and other compilers which warn about this; fix the uncovered warnings in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
|
||||
// we can retrieve the delay for a frame only after building
|
||||
// a GdkPixbufAnimationIter...
|
||||
virtual int GetDelay(unsigned int frame) const { return 0; }
|
||||
virtual int GetDelay(unsigned int WXUNUSED(frame)) const { return 0; }
|
||||
|
||||
virtual wxSize GetSize() const;
|
||||
|
||||
|
@@ -33,21 +33,21 @@ public:
|
||||
|
||||
~wxGTKScreenImplDC();
|
||||
|
||||
static bool StartDrawingOnTop( wxWindow *window ) { return true; }
|
||||
static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL ) { return true; }
|
||||
static bool StartDrawingOnTop(wxWindow * WXUNUSED(window))
|
||||
{ return true; }
|
||||
static bool StartDrawingOnTop(wxRect * WXUNUSED(rect) = NULL)
|
||||
{ return true; }
|
||||
static bool EndDrawingOnTop() { return true; }
|
||||
|
||||
|
||||
protected:
|
||||
virtual void DoGetSize(int *width, int *height) const;
|
||||
|
||||
|
||||
void Init();
|
||||
|
||||
private:
|
||||
DECLARE_ABSTRACT_CLASS(wxGTKScreenImplDC)
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// __GTKDCSCREENH__
|
||||
#endif // __GTKDCSCREENH__
|
||||
|
||||
|
@@ -49,7 +49,8 @@
|
||||
/* so, override wxButton::GTKGetWindow and return NULL as GTK+ doesn't */ \
|
||||
/* give us access to the internal GdkWindow of a GtkFileChooserButton */ \
|
||||
protected: \
|
||||
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const \
|
||||
virtual GdkWindow * \
|
||||
GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const \
|
||||
{ return NULL; }
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user