From 4aaef4c3e042985d2d8285ff950d1eb5521a2cc0 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 12 Apr 2020 11:35:36 +0100 Subject: [PATCH] Fix additional warnings with addPluralSuffixes. --- src/libespeak-ng/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libespeak-ng/translate.c b/src/libespeak-ng/translate.c index 4d76e382..fb5517b6 100644 --- a/src/libespeak-ng/translate.c +++ b/src/libespeak-ng/translate.c @@ -448,7 +448,7 @@ char *strchr_w(const char *s, int c) } // append plural suffixes depending on preceding letter -void addPluralSuffixes(int flags, Translator *tr, char last_char, char *word_phonemes) +static void addPluralSuffixes(int flags, Translator *tr, char last_char, char *word_phonemes) { char word_zz[4] = { 0, 'z', 'z', 0 }; char word_iz[4] = { 0, 'i', 'z', 0 }; @@ -753,7 +753,7 @@ static int TranslateWord3(Translator *tr, char *word_start, WORD_TAB *wtab, char if (wflags & FLAG_TRANSLATOR2) return 0; - addPluralSuffixes(wflags, tr, last_char, &word_phonemes); + addPluralSuffixes(wflags, tr, last_char, word_phonemes); return dictionary_flags[0] & FLAG_SKIPWORDS; // for "b.c.d" } else if (found == false) { // word's pronunciation is not given in the dictionary list, although @@ -1026,7 +1026,7 @@ static int TranslateWord3(Translator *tr, char *word_start, WORD_TAB *wtab, char } } - addPluralSuffixes(wflags, tr, last_char, &word_phonemes); + addPluralSuffixes(wflags, tr, last_char, word_phonemes); wflags |= emphasize_allcaps; // determine stress pattern for this word