]> granicus.if.org Git - graphviz/commitdiff
smyrna on_attrAddBtn_clicked: remove unused 'value'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 21 Mar 2022 14:49:00 +0000 (07:49 -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 3e933d5bfa650a726318c54a158998a6e7f5d883..78645c454858c73a3e5ebe909ec8019d2ef959d7 100644 (file)
@@ -502,7 +502,6 @@ _BB void on_attrProg_toggled(GtkWidget * widget, gpointer user_data)
 _BB void on_attrAddBtn_clicked(GtkWidget * widget, gpointer user_data)
 {
     char *attr_name;
-    char *value;
     char *defValue;
     int objKind;
     topview *t;
@@ -514,9 +513,6 @@ _BB void on_attrAddBtn_clicked(GtkWidget * widget, gpointer user_data)
     attr_name =
        (char *) gtk_entry_get_text((GtkEntry *)
                                    glade_xml_get_widget(xml, "txtAttr"));
-    value =
-       (char *) gtk_entry_get_text((GtkEntry *)
-                                   glade_xml_get_widget(xml, "txtValue"));
     defValue =
        (char *) gtk_entry_get_text((GtkEntry *)
                                    glade_xml_get_widget(xml,