From 5ef6f824d823f4d977b2f351547ce4f7565304a5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 25 Sep 2022 12:14:56 -0700 Subject: [PATCH] smyrna get_text_widget_to_attribute: remove unnecessary cast Squashes a -Wcast-qual warning. --- cmd/smyrna/gui/topviewsettings.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/smyrna/gui/topviewsettings.c b/cmd/smyrna/gui/topviewsettings.c index 789a2f305..d04e08a1c 100644 --- a/cmd/smyrna/gui/topviewsettings.c +++ b/cmd/smyrna/gui/topviewsettings.c @@ -116,8 +116,7 @@ static int get_text_widget_to_attribute(char *attrib, char *widget_name, if (strlen(attrib) > 512) return 0; - agattr(g, AGRAPH, attrib, - (char*)gtk_entry_get_text((GtkEntry *) + agattr(g, AGRAPH, attrib, gtk_entry_get_text((GtkEntry*) glade_xml_get_widget(xml, widget_name))); return 1; } -- 2.40.0