From 173f035bc24bc96af93a41d74628231b79239166 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 25 Nov 2019 20:58:16 -0800 Subject: [PATCH] Suppress a GCC -Wcast-function-type warning We're setting the same event handler GTK uses internally, so the warning isn't helpful --- src/gtk/evtloop.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/evtloop.cpp b/src/gtk/evtloop.cpp index bd5225e4c5..1feaf3aeec 100644 --- a/src/gtk/evtloop.cpp +++ b/src/gtk/evtloop.cpp @@ -380,7 +380,10 @@ void wxGUIEventLoop::DoYieldFor(long eventsToProcess) gdk_event_handler_set(wxgtk_main_do_event, this, NULL); while (Pending()) // avoid false positives from our idle source gtk_main_iteration(); + + wxGCC_WARNING_SUPPRESS(cast-function-type) gdk_event_handler_set ((GdkEventFunc)gtk_main_do_event, NULL, NULL); + wxGCC_WARNING_RESTORE() wxEventLoopBase::DoYieldFor(eventsToProcess);