]> granicus.if.org Git - graphviz/commitdiff
smyrna on_txtAttr_changed: squash -Wunused-parameter warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 20 Jan 2023 15:55:00 +0000 (07:55 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 21 Jan 2023 21:44:04 +0000 (13:44 -0800)
This function is used as a callback, so the parameter cannot easily be removed.

cmd/smyrna/gui/frmobjectui.c

index 44d0e6600c162b09d9ef233393d789449012a668..1e32969ced97616eafa3ffbe1d17306081ff52aa 100644 (file)
@@ -376,6 +376,7 @@ static void filter_attributes(const char *prefix, topview *t) {
 
 _BB void on_txtAttr_changed(GtkWidget * widget, gpointer user_data)
 {
+  (void)user_data;
   filter_attributes(gtk_entry_get_text((GtkEntry*)widget), view->Topview);
 }