From cc44e90fdb5f4d829c17e0bb6a2021bf52267c20 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 29 Jul 2024 12:09:43 -0700 Subject: [PATCH] Remove unused variable from trie_sort.cc Allows LLVM to succeed with `-Wunused-but-set-variable` --- lm/trie_sort.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lm/trie_sort.cc b/lm/trie_sort.cc index 8972bda5..6ddf9b7e 100644 --- a/lm/trie_sort.cc +++ b/lm/trie_sort.cc @@ -264,7 +264,7 @@ void SortedFiles::ConvertToSorted(util::FilePiece &f, const SortedVocabulary &vo std::deque files, contexts; Closer files_closer(files), contexts_closer(contexts); - for (std::size_t batch = 0, done = 0; done < count; ++batch) { + for (std::size_t done = 0; done < count; ) { uint8_t *out = begin; uint8_t *out_end = out + std::min(count - done, batch_size) * entry_size; if (order == counts.size()) {