From 825a8a4710f91325501bd47863990c812a13151d Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 5 Jun 2016 08:51:30 +0100 Subject: [PATCH] compiledata: Avoid a warning when using %x in CompilePhoneme. --- src/libespeak-ng/compiledata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index ff745d54..b0f6e3f3 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -2133,7 +2133,7 @@ int CompilePhoneme(int compile_phoneme) memcpy(number_buf, p, 4); // U+ should be followed by 4 hex digits number_buf[4] = 0; c = '#'; - sscanf(number_buf, "%x", &c); + sscanf(number_buf, "%x", (unsigned int *)&c); // move past the 4 hexdecimal digits for (j = 0; j < 4; j++) {