From 5880d1b990be6e1508b016ed65956dfbfb3a5973 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 15 Oct 2016 21:24:42 +0100 Subject: gtk: Cast static strings assigned to non-const variables GtkTargetEntry.target is particularly egregious, and it should really be constified. --- gtk/gtkaccelmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkaccelmap.c') 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"); -- cgit v1.2.1