diff options
author | walkingeyerobot <mitch@thefoley.net> | 2022-06-14 19:13:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 23:13:48 +0000 |
commit | ee5e48d5c1408dfb291c4b9bfa4804dbe5ba1520 (patch) | |
tree | d4353dc90acae831479fffd3a37f643c6f7284cd /src | |
parent | 7049a8508b738f1afa3622980fbfe10cb1ea85b8 (diff) | |
download | binaryen-ee5e48d5c1408dfb291c4b9bfa4804dbe5ba1520.tar.gz binaryen-ee5e48d5c1408dfb291c4b9bfa4804dbe5ba1520.tar.bz2 binaryen-ee5e48d5c1408dfb291c4b9bfa4804dbe5ba1520.zip |
Fix an unused variable warning (#4728)
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wat-parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp index da87c56a7..aafb66019 100644 --- a/src/wasm/wat-parser.cpp +++ b/src/wasm/wat-parser.cpp @@ -988,6 +988,7 @@ Result<> parseModule(Module& wasm, std::string_view input) { if (auto name = decls.typeDefs[i].name; name.is()) { // TODO: struct field names bool inserted = wasm.typeNames.insert({types[i], {name, {}}}).second; + WASM_UNUSED(inserted); assert(inserted); } } |