Skip to content

Commit

Permalink
Remove unused variable from trie_sort.cc
Browse files Browse the repository at this point in the history
Allows LLVM to succeed with `-Wunused-but-set-variable`
  • Loading branch information
r-barnes authored Jul 29, 2024
1 parent e504a4d commit cc44e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lm/trie_sort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void SortedFiles::ConvertToSorted(util::FilePiece &f, const SortedVocabulary &vo
std::deque<FILE*> 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()) {
Expand Down

0 comments on commit cc44e90

Please sign in to comment.