Fix additional warnings with addPluralSuffixes.

This commit is contained in:
Reece H. Dunn
2020-04-12 11:35:36 +01:00
parent 8352683e1b
commit 4aaef4c3e0
+3 -3
View File
@@ -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