From 41a2f9f394c9bb526c7a3184e571360e3813fb50 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 15 Nov 2022 14:00:06 -0800 Subject: Fix an unused var warning in some compilers (#5260) --- src/wasm/wat-parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/wasm/wat-parser.cpp') diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp index f88bc9872..a87a86c3f 100644 --- a/src/wasm/wat-parser.cpp +++ b/src/wasm/wat-parser.cpp @@ -1880,8 +1880,7 @@ struct ParseDefsCtx : TypeParserCtx { Result<> makeStructSet(Index pos, HeapType type, Index field) { assert(type.isStruct()); - const auto& fields = type.getStruct().fields; - assert(fields.size() > field); + assert(type.getStruct().fields.size() > field); auto val = pop(pos); CHECK_ERR(val); auto ref = pop(pos); -- cgit v1.2.3