From: Ben Pfaff Date: Sat, 2 Apr 2011 04:12:54 +0000 (-0700) Subject: gui: Fix const-ness warning in create_lines_tree_view(). X-Git-Tag: v0.7.8~18 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd01afaa6575389277892cc45a1895571743184d;p=pspp-builds.git gui: Fix const-ness warning in create_lines_tree_view(). This fixes this warning from GCC: src/ui/gui/text-data-import-dialog.c: In function ‘create_lines_tree_view’: src/ui/gui/text-data-import-dialog.c:875: warning: initialization discards qualifiers from pointer target type --- diff --git a/src/ui/gui/text-data-import-dialog.c b/src/ui/gui/text-data-import-dialog.c index 8579ccc9..6cc4bee3 100644 --- a/src/ui/gui/text-data-import-dialog.c +++ b/src/ui/gui/text-data-import-dialog.c @@ -872,7 +872,7 @@ create_lines_tree_view (GtkContainer *parent, struct import_assistant *ia) size_t max_line_length; gint content_width, header_width; size_t i; - gchar *title = _("Text"); + const gchar *title = _("Text"); make_tree_view (ia, 0, &tree_view);