]> granicus.if.org Git - graphviz/commitdiff
smyrna get_text_widget_to_attribute: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Sep 2022 19:14:56 +0000 (12:14 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 26 Sep 2022 15:06:12 +0000 (08:06 -0700)
Squashes a -Wcast-qual warning.

cmd/smyrna/gui/topviewsettings.c

index 789a2f30583ef60029994d745b53dffcc84e0ac3..d04e08a1c951e1d305e2cd1b1a8e7397c00f7630 100644 (file)
@@ -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;
 }