Browse code

Avoid possible compiler warning

John Hawthorn authored on 12/07/2025 05:00:43
Showing 1 changed files

... ...
@@ -79,7 +79,8 @@ static inline void match_row(const struct match_struct *match, int row, score_t
79 79
 	score_t prev_score = SCORE_MIN;
80 80
 	score_t gap_score = i == n - 1 ? SCORE_GAP_TRAILING : SCORE_GAP_INNER;
81 81
 
82
-	score_t prev_M, prev_D;
82
+	/* These will not be used with this value, but not all compilers see it */
83
+	score_t prev_M = SCORE_MIN, prev_D = SCORE_MIN;
83 84
 
84 85
 	for (int j = 0; j < m; j++) {
85 86
 		if (lower_needle[i] == lower_haystack[j]) {