summaryrefslogtreecommitdiff
path: root/gtk/gtkaccelmap.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-10-15 21:24:42 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2016-10-17 11:44:10 +0100
commit5880d1b990be6e1508b016ed65956dfbfb3a5973 (patch)
tree1d174facdcf5b5f03f75269bcd5a570719dc8f10 /gtk/gtkaccelmap.c
parent9bb816f8ee76b8325b78f108b2c38ce878d08879 (diff)
downloadgtk+-5880d1b990be6e1508b016ed65956dfbfb3a5973.tar.gz
gtk: Cast static strings assigned to non-const variables
GtkTargetEntry.target is particularly egregious, and it should really be constified.
Diffstat (limited to 'gtk/gtkaccelmap.c')
-rw-r--r--gtk/gtkaccelmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkaccelmap.c b/gtk/gtkaccelmap.c
index d5e53d35f7..70e3c7dc29 100644
--- a/gtk/gtkaccelmap.c
+++ b/gtk/gtkaccelmap.c
@@ -609,7 +609,7 @@ gtk_accel_map_load_scanner (GScanner *scanner)
skip_comment_single = scanner->config->skip_comment_single;
scanner->config->skip_comment_single = TRUE;
cpair_comment_single = scanner->config->cpair_comment_single;
- scanner->config->cpair_comment_single = ";\n";
+ scanner->config->cpair_comment_single = (char *) ";\n";
symbol_2_token = scanner->config->symbol_2_token;
scanner->config->symbol_2_token = FALSE;
saved_symbol = g_scanner_lookup_symbol (scanner, "gtk_accel_path");