fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit feb60a125733f62427f92a490edfa0f679c5ea52
parent c13e5970885e098b9f61dcffdce34724eb09c54b
Author: John Hawthorn <john@hawthorn.email>
Date:   Fri, 11 Jul 2025 22:00:43 -0700

Avoid possible compiler warning

Diffstat:
Msrc/match.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

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