Build with -Wunused-variable

This commit is contained in:
2024-11-12 14:57:36 -08:00
parent 0dbfb4deae
commit a92271a205
3 changed files with 10 additions and 6 deletions
+4 -4
View File
@@ -5862,13 +5862,13 @@ void checkVersionsGeqOldestExtant(Node *n,
case Type_Node0: {
} break;
case Type_Node3: {
auto *self = static_cast<Node3 *>(n);
[[maybe_unused]] auto *self = static_cast<Node3 *>(n);
for (int i = 0; i < 3; ++i) {
assert(self->childMaxVersion[i] >= oldestExtantVersion);
}
} break;
case Type_Node16: {
auto *self = static_cast<Node16 *>(n);
[[maybe_unused]] auto *self = static_cast<Node16 *>(n);
for (int i = 0; i < 16; ++i) {
assert(self->childMaxVersion[i] >= oldestExtantVersion);
}
@@ -5878,7 +5878,7 @@ void checkVersionsGeqOldestExtant(Node *n,
for (int i = 0; i < 48; ++i) {
assert(self->childMaxVersion[i] >= oldestExtantVersion);
}
for (auto m : self->maxOfMax) {
for ([[maybe_unused]] auto m : self->maxOfMax) {
assert(m >= oldestExtantVersion);
}
} break;
@@ -5887,7 +5887,7 @@ void checkVersionsGeqOldestExtant(Node *n,
for (int i = 0; i < 256; ++i) {
assert(self->childMaxVersion[i] >= oldestExtantVersion);
}
for (auto m : self->maxOfMax) {
for ([[maybe_unused]] auto m : self->maxOfMax) {
assert(m >= oldestExtantVersion);
}
} break;