From 843014eac2952ddeaa6a8018c92ef02b01afed77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 19 Mar 2016 12:56:35 +0100 Subject: [PATCH] Silence compiler warning Though this really should be taken care of properly, see https://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning --- src/util/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.c b/src/util/util.c index 0fd354e173..a09f2251cb 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -216,7 +216,7 @@ utf8 * safe_strtrunc(utf8 * text, size_t size) char *ch = text; char *last = text; uint32 codepoint; - while ((codepoint = utf8_get_next(ch, &ch)) != 0) { + while ((codepoint = utf8_get_next(ch, (const utf8 **)&ch)) != 0) { if (ch <= sourceLimit) { last = ch; } else {