From 8dbe205920acadd646e76dc84e3b00e315abf26c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 21 Jul 2022 18:32:52 -0700 Subject: [PATCH] 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. --- cmd/smyrna/gui/frmobjectui.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.40.0