]> granicus.if.org Git - graphviz/commitdiff
smyrna on_attrAddBtn_clicked: remove unused 'prog'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 21 Mar 2022 14:31:31 +0000 (07:31 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 05:31:13 +0000 (22:31 -0700)
This causes compiler warnings resulting in build failure when enabling this in
the CMake build system.

Gitlab: related to #1836

cmd/smyrna/gui/frmobjectui.c

index 74113330237f2fd5d29f95a90d2e1417d296e4b9..71164d89277dcc7437299116b3b6eea460e513c6 100644 (file)
@@ -505,7 +505,6 @@ _BB void on_attrAddBtn_clicked(GtkWidget * widget, gpointer user_data)
     char *value;
     char *defValue;
     int objKind;
-    int prog;
     topview *t;
     Agraph_t *g;
     attr_t *attr;
@@ -522,10 +521,6 @@ _BB void on_attrAddBtn_clicked(GtkWidget * widget, gpointer user_data)
        (char *) gtk_entry_get_text((GtkEntry *)
                                    glade_xml_get_widget(xml,
                                                         "txtDefValue"));
-    prog =
-       gtk_toggle_button_get_active((GtkToggleButton *)
-                                    glade_xml_get_widget(xml,
-                                                         "attrProg"));
     g = view->g[view->activeGraph];
     t = view->Topview;
     /*try to find first */