mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-06 03:45:32 +00:00
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;
```
This commit is contained in:
parent
69ccb39741
commit
5f6fa6d164
1 changed files with 0 additions and 2 deletions
2
src/lib/third_party/src/roaring.cc
vendored
2
src/lib/third_party/src/roaring.cc
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue