diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-03 17:43:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-03 17:43:38 +0200 |
commit | 5f6fa6d1642184ebcff9efee84ca4c90b156796f (patch) | |
tree | b2e287d572993cace3f8502188b45d490a12cb85 /src | |
parent | 69ccb39741a99999db07bb56e01fc53774b69621 (diff) |
Fix a compilation warning (#1620)
With clang-15 (nightly build)
```
In file included from ndpi_bitmap.c:39:
./third_party/src/roaring.cc:14233:13: warning: variable 'run_count' set but not used [-Wunused-but-set-variable]
int run_count = 0;
```
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/third_party/src/roaring.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/third_party/src/roaring.cc b/src/lib/third_party/src/roaring.cc index 5d72d5150..a2668fcda 100644 --- a/src/lib/third_party/src/roaring.cc +++ b/src/lib/third_party/src/roaring.cc @@ -14237,7 +14237,6 @@ static container_t *convert_run_optimize( int long_ctr = 0; uint64_t cur_word = c_qua_bitset->words[0]; - int run_count = 0; while (true) { while (cur_word == UINT64_C(0) && long_ctr < BITSET_CONTAINER_SIZE_IN_WORDS - 1) @@ -14268,7 +14267,6 @@ static container_t *convert_run_optimize( int local_run_end = __builtin_ctzll(~cur_word_with_1s); run_end = local_run_end + long_ctr * 64; add_run(answer, run_start, run_end - 1); - run_count++; cur_word = cur_word_with_1s & (cur_word_with_1s + 1); } return answer; |