From: Matthew Fernandez Date: Fri, 22 Jul 2022 01:32:52 +0000 (-0700) Subject: smyrna doApply: remove unused 'widget' parameter X-Git-Tag: 5.0.1~29^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8dbe205920acadd646e76dc84e3b00e315abf26c;p=graphviz smyrna doApply: remove unused 'widget' parameter Note this also makes `widget` unused in `on_attrApplyBtn_clicked` which is a Glade callback and cannot have its corresponding parameter removed. So we squash the resulting warning there. --- diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 635f722f9..46c5bf08c 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -434,7 +434,7 @@ static void set_refresh_filters(ViewInfo * v, int type, char *name) v->refresh.selection = 1; } -static void doApply (GtkWidget * widget, int doAll) +static void doApply(int doAll) { char *attr_name; char *value; @@ -497,8 +497,10 @@ static void doApply (GtkWidget * widget, int doAll) _BB void on_attrApplyBtn_clicked(GtkWidget * widget, gpointer user_data) { + (void)widget; (void)user_data; - doApply (widget, 0); + + doApply(0); } /* This is the action attached to the publish button on the attributes