Browse Source

Fix additional warnings with addPluralSuffixes.

master
Reece H. Dunn 5 years ago
parent
commit
4aaef4c3e0
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/libespeak-ng/translate.c

+ 3
- 3
src/libespeak-ng/translate.c View File

} }


// append plural suffixes depending on preceding letter // 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_zz[4] = { 0, 'z', 'z', 0 };
char word_iz[4] = { 0, 'i', 'z', 0 }; char word_iz[4] = { 0, 'i', 'z', 0 };
if (wflags & FLAG_TRANSLATOR2) if (wflags & FLAG_TRANSLATOR2)
return 0; 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" return dictionary_flags[0] & FLAG_SKIPWORDS; // for "b.c.d"
} else if (found == false) { } else if (found == false) {
// word's pronunciation is not given in the dictionary list, although // word's pronunciation is not given in the dictionary list, although
} }
} }


addPluralSuffixes(wflags, tr, last_char, &word_phonemes);
addPluralSuffixes(wflags, tr, last_char, word_phonemes);
wflags |= emphasize_allcaps; wflags |= emphasize_allcaps;


// determine stress pattern for this word // determine stress pattern for this word

Loading…
Cancel
Save