From 3d44dd2705b6d4594285b0a8654b7e9bc1c388f5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 21 Mar 2022 07:49:00 -0700 Subject: [PATCH] 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 --- cmd/smyrna/gui/frmobjectui.c | 4 ---- 1 file changed, 4 deletions(-) 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, -- 2.40.0