mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 22:24:56 +08:00
Suppress unused GtkWidget parameter warning in no-debug build
Use WXUNUSED_UNLESS_DEBUG() to avoid the warnings when the parameter is actually unused.
This commit is contained in:
+2
-2
@@ -2391,7 +2391,7 @@ gboolean SendEnterLeaveEvents(wxWindowGTK* win, EventType* gdk_event)
|
||||
|
||||
// This is a (internally) public function used by wxChoice too.
|
||||
gboolean
|
||||
wxGTKImpl::WindowEnterCallback(GtkWidget* widget,
|
||||
wxGTKImpl::WindowEnterCallback(GtkWidget* WXUNUSED_UNLESS_DEBUG(widget),
|
||||
GdkEventCrossing* gdk_event,
|
||||
wxWindowGTK* win)
|
||||
{
|
||||
@@ -2436,7 +2436,7 @@ gtk_window_enter_callback( GtkWidget* widget,
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
gboolean
|
||||
wxGTKImpl::WindowLeaveCallback(GtkWidget* widget,
|
||||
wxGTKImpl::WindowLeaveCallback(GtkWidget* WXUNUSED_UNLESS_DEBUG(widget),
|
||||
GdkEventCrossing* gdk_event,
|
||||
wxWindowGTK* win)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user