From: Matthew Fernandez Date: Mon, 21 Mar 2022 14:49:00 +0000 (-0700) Subject: smyrna on_attrAddBtn_clicked: remove unused 'value' X-Git-Tag: 4.0.0~161^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d44dd2705b6d4594285b0a8654b7e9bc1c388f5;p=graphviz smyrna on_attrAddBtn_clicked: remove unused 'value' This causes compiler warnings resulting in build failure when enabling this in the CMake build system. Gitlab: related to #1836 --- diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 3e933d5bf..78645c454 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -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,