Skip to content

Commit efd572c

Browse files
authored
Mark a variable only used in an assert (#7636)
This allows building without asserts, with -Wunused-but-set-variable
1 parent 537b4d4 commit efd572c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ir/possible-contents.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class PossibleContents {
332332
WASM_UNREACHABLE("TODO: use Literals");
333333
} else if (std::get_if<GlobalInfo>(&value)) {
334334
WASM_UNREACHABLE("TODO");
335-
} else if (auto* cone = std::get_if<ConeType>(&value)) {
335+
} else if ([[maybe_unused]] auto* cone = std::get_if<ConeType>(&value)) {
336336
// Return a full cone of the appropriate type, as we lack depth info for
337337
// the separate items in the tuple (tuples themselves have no subtyping,
338338
// so the tuple's depth must be 0, i.e., an exact type).

0 commit comments

Comments
 (0)