From: Matthew Fernandez Date: Fri, 20 Jan 2023 15:55:00 +0000 (-0800) Subject: smyrna on_txtAttr_changed: squash -Wunused-parameter warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=980ab14ee35a3a4ac3c8855cc3c2ed414624b0b0;p=graphviz smyrna on_txtAttr_changed: squash -Wunused-parameter warning This function is used as a callback, so the parameter cannot easily be removed. --- diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 44d0e6600..1e32969ce 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -376,6 +376,7 @@ static void filter_attributes(const char *prefix, topview *t) { _BB void on_txtAttr_changed(GtkWidget * widget, gpointer user_data) { + (void)user_data; filter_attributes(gtk_entry_get_text((GtkEntry*)widget), view->Topview); }