xml_entity.c:238:11: error: initializing 'gchar *' (aka 'char *') with an expression of type 'const gchar *' (aka 'const char *') discar
ds qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
238 | gchar *nxt = g_utf8_next_char(srcp);
| ^ ~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [Makefile:773: xml_entity.o] Error 1
diff --git a/src/xml_entity.c b/src/xml_entity.c
index 76440c6..013e612 100644
--- a/src/xml_entity.c
+++ b/src/xml_entity.c
@@ -235,7 +235,7 @@ gchar *utf82xmlentities(const gchar *inbuf, gboolean iso8859_1, gboolean symbols
g_free(entity);
srcp = g_utf8_next_char(srcp);
} else {
- gchar *nxt = g_utf8_next_char(srcp);
+ const gchar *nxt = g_utf8_next_char(srcp);
outbuf = strncat(outbuf, srcp, (nxt-srcp));
srcp = nxt;
}
thanks again, fixed in revision 9141!