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:
Vendored
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user