]> granicus.if.org Git - graphviz/commitdiff
smyrna topviewsettings: squash -Wunused-parameter warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 22 Jul 2022 01:14:08 +0000 (18:14 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 27 Jul 2022 14:27:00 +0000 (07:27 -0700)
These functions are used as Glade callbacks, so need to conform to particular
type signatures.

cmd/smyrna/gui/topviewsettings.c

index f370086c652470183fbd37aa5c7d2970bffd27e7..c7d68c4806b1d7d2b7f2045c7bfa3818c8aeba9f 100644 (file)
 
 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)