From f70c8e3d6be60a57074dfe46dba366db45e00be7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Oct 2023 08:49:13 +0530 Subject: [PATCH] Fix another compiler warning about an unused variable --- src/calibre/utils/icu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/utils/icu.c b/src/calibre/utils/icu.c index 48e97701ad..c67449018e 100644 --- a/src/calibre/utils/icu.c +++ b/src/calibre/utils/icu.c @@ -289,9 +289,9 @@ icu_Collator_find_all(icu_Collator *self, PyObject *args) { search = usearch_openFromCollator(a, asz, b, bsz, self->collator, whole_words ? self->word_iterator : NULL, &status); if (search && U_SUCCESS(status)) { pos = usearch_first(search, &status); - int32_t codepoint_count = 0, pos_for_codepoint_count = 0; + int32_t pos_for_codepoint_count = 0; while (pos != USEARCH_DONE) { - codepoint_count += u_countChar32(b + pos_for_codepoint_count, pos - pos_for_codepoint_count); + u_countChar32(b + pos_for_codepoint_count, pos - pos_for_codepoint_count); pos_for_codepoint_count = pos; length = usearch_getMatchedLength(search); length = u_countChar32(b + pos, length);