From: Matthew Fernandez Date: Fri, 22 Jul 2022 01:14:08 +0000 (-0700) Subject: smyrna topviewsettings: squash -Wunused-parameter warnings X-Git-Tag: 5.0.1~29^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e870befa874b243eafc49e7b89c670dbb782e78;p=graphviz smyrna topviewsettings: squash -Wunused-parameter warnings These functions are used as Glade callbacks, so need to conform to particular type signatures. --- 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)