Browse Source

Remove unused letter assignment in MatchRule.

This was identified by the clang static analyser. The letter
variable is set in the various match_type switch cases, so
does not need to be initialised in the start of the while loop.
master
Reece H. Dunn 7 years ago
parent
commit
a2f751044c
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      src/libespeak-ng/dictionary.c

+ 0
- 1
src/libespeak-ng/dictionary.c View File

@@ -1626,7 +1626,6 @@ static void MatchRule(Translator *tr, char *word[], char *word_start, int group_
unpron_ignore = word_flags & FLAG_UNPRON_TEST;
match_type = 0;
consumed = 0;
letter = 0;
letter_w = 0;
distance_right = -6; // used to reduce points for matches further away the current letter
distance_left = -2;

Loading…
Cancel
Save