[wpiutil] Fix unused variable warning in release build (#5430)

This commit is contained in:
autoantwort
2023-07-10 18:48:51 +02:00
committed by GitHub
parent f031513470
commit a6463ed761
32 changed files with 53 additions and 30 deletions

View File

@@ -126,7 +126,7 @@ public:
for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P)
P->getFirst() = EmptyKey;
} else {
unsigned NumEntries = getNumEntries();
[[maybe_unused]] unsigned NumEntries = getNumEntries();
for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey)) {
if (!KeyInfoT::isEqual(P->getFirst(), TombstoneKey)) {