From 0e870befa874b243eafc49e7b89c670dbb782e78 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 21 Jul 2022 18:14:08 -0700 Subject: [PATCH] smyrna topviewsettings: squash -Wunused-parameter warnings These functions are used as Glade callbacks, so need to conform to particular type signatures. --- cmd/smyrna/gui/topviewsettings.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cmd/smyrna/gui/topviewsettings.c b/cmd/smyrna/gui/topviewsettings.c index f370086c6..c7d68c480 100644 --- a/cmd/smyrna/gui/topviewsettings.c +++ b/cmd/smyrna/gui/topviewsettings.c @@ -17,10 +17,16 @@ void color_change_request(GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; + view->refresh.color=1; } void size_change_request(GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; + view->refresh.nodesize=1; } @@ -32,17 +38,26 @@ void on_settingsOKBtn_clicked(GtkWidget * widget, gpointer user_data) void on_settingsApplyBtn_clicked(GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; + update_graph_from_settings(view->g[view->activeGraph]); set_viewport_settings_from_template(view, view->g[view->activeGraph]); updateSmGraph(view->g[view->activeGraph],view->Topview); } void on_dlgSettings_close (GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; + gtk_widget_hide(glade_xml_get_widget(xml, "dlgSettings")); } void on_settingsCancelBtn_clicked(GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; + gtk_widget_hide(glade_xml_get_widget(xml, "dlgSettings")); } static void copy_attr(Agraph_t* destG,char* attr,Agraph_t* g) -- 2.40.0