From a2f751044ccb212b2be7e9c50cb329254da4ae8e Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Tue, 12 Sep 2017 07:46:53 +0100 Subject: [PATCH] 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. --- src/libespeak-ng/dictionary.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libespeak-ng/dictionary.c b/src/libespeak-ng/dictionary.c index 0fbe909c..c82e4272 100644 --- a/src/libespeak-ng/dictionary.c +++ b/src/libespeak-ng/dictionary.c @@ -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;