]> granicus.if.org Git - graphviz/commitdiff
squash -Wunused-parameter warnings in save_as_graph_clicked
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 19 Apr 2021 00:28:50 +0000 (17:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Apr 2021 18:58:20 +0000 (11:58 -0700)
cmd/smyrna/gui/callbacks.c

index a42c4ac69f7da40ea0ee043561fd3b5e9e638e9c..2ccc45d04be639063a44f36cdcfa12c92bf72750 100644 (file)
@@ -40,6 +40,9 @@ void save_graph_clicked(GtkWidget * widget, gpointer user_data)
 
 void save_as_graph_clicked(GtkWidget * widget, gpointer user_data)
 {
+    (void)widget;
+    (void)user_data;
+
     GtkWidget *dialog;
     dialog = gtk_file_chooser_dialog_new("Save File",
                                         NULL,
@@ -58,9 +61,6 @@ void save_as_graph_clicked(GtkWidget * widget, gpointer user_data)
        g_free(filename);
     }
     gtk_widget_destroy(dialog);
-
-
-
 }
 
 void remove_graph_clicked(GtkWidget * widget, gpointer user_data)