Skip to content

Commit 45b7110

Browse files
[NFC] Add missing maybe_unused annotation (#7610)
This fixes an unused variable warning in opt mode.
1 parent 1217a95 commit 45b7110

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ir/public-type-validator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ bool PublicTypeValidator::isValidPublicTypeImpl(HeapType type) {
3636

3737
auto markVisitingInvalid = [&]() {
3838
for (auto group : visiting) {
39-
auto [_, inserted] = allowedPublicGroupCache.insert({group, false});
39+
[[maybe_unused]] auto [_, inserted] =
40+
allowedPublicGroupCache.insert({group, false});
4041
assert(inserted);
4142
}
4243
};

0 commit comments

Comments
 (0)