From: Matthew Fernandez Date: Fri, 22 Jul 2022 01:16:34 +0000 (-0700) Subject: smyrna toolboxcallbacks: squash -Wunused-parameter warnings X-Git-Tag: 5.0.1~29^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe849bcb2403ee72d73974341e026efbec18d150;p=graphviz smyrna toolboxcallbacks: 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/toolboxcallbacks.c b/cmd/smyrna/gui/toolboxcallbacks.c index cf328d2b3..e63f1f7ac 100644 --- a/cmd/smyrna/gui/toolboxcallbacks.c +++ b/cmd/smyrna/gui/toolboxcallbacks.c @@ -21,11 +21,16 @@ void btnToolZoomOut_clicked(GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; + glmotion_zoom_inc(0); } void btnToolZoomFit_clicked(GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; float z, GDX, SDX, GDY, SDY; (view->active_camera >= 0) @@ -60,6 +65,9 @@ void btnToolZoomFit_clicked(GtkWidget * widget, gpointer user_data) void btnToolFit_clicked(GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; + float scx, scy, gcx, gcy, z; @@ -98,6 +106,9 @@ void btnToolFit_clicked(GtkWidget * widget, gpointer user_data) void on_btnActivateGraph_clicked(GtkWidget * widget, gpointer user_data) { + (void)widget; + (void)user_data; + int graphId; graphId = gtk_combo_box_get_active(view->graphComboBox); /* fprintf (stderr, "switch to graph %d\n",graphId); */