From 361bf702e0b9ebf8052c39b15cba434ad4d85692 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Mon, 27 Oct 2014 00:48:24 +0100 Subject: [PATCH] Explicitly cast string literals to non-constant pointers --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 78c5436c..45f740bc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -184,7 +184,7 @@ signalconn.c: $(glade_file) $(template_file) $(AM_V_GEN)( \ echo '/* This file is auto-generated, do not edit. */' && \ $(SED) -n '/@callback_map@/q;p' "$(template_file)" && \ - $(SED) -n 's/^.*handler="\([^"]\+\)".*$$/\tg_hash_table_insert(hash, "\1", G_CALLBACK(\1));/p' "$(glade_file)" \ + $(SED) -n 's/^.*handler="\([^"]\+\)".*$$/\tg_hash_table_insert(hash, (gpointer) "\1", G_CALLBACK(\1));/p' "$(glade_file)" \ | $(SORT) | $(UNIQ) && \ $(SED) -n '/@callback_map@/{:l;n;p;b l}' "$(template_file)" \ ) > $@ || { $(RM) $@ && exit 1; }