From 91744ac171b4bde2f72cc47f44011ad63a533e6f Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sat, 30 Jun 2018 14:08:50 +0100 Subject: [PATCH] Fix gcc 7.3.0 warnings in translate.c. --- src/libespeak-ng/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libespeak-ng/translate.c b/src/libespeak-ng/translate.c index 24bcb59a..51b3684f 100644 --- a/src/libespeak-ng/translate.c +++ b/src/libespeak-ng/translate.c @@ -1795,7 +1795,7 @@ static int SubstituteChar(Translator *tr, unsigned int c, unsigned int next_in, { int ix; unsigned int word; - unsigned int new_c, c2, c_lower; + unsigned int new_c, c2 = ' ', c_lower; int upper_case = 0; static bool ignore_next = false; const unsigned int *replace_chars; @@ -1850,9 +1850,9 @@ static int SubstituteChar(Translator *tr, unsigned int c, unsigned int next_in, *wordflags |= FLAG_CHAR_REPLACED; if (option_phonemes & espeakPHONEMES_TRACE) { char msg[21] = {'R','e','p','l','a','c','e',':',' '}; - char *index = &msg; - index +=9; - index += utf8_out(c, index); + char *index = msg; + index += 9; + index += utf8_out(c, index); *index++ = ' '; *index++ = '>'; *index++ = ' ';