From d3cf911a803912a5aabe7a8d130c8b6468b95ff1 Mon Sep 17 00:00:00 2001 From: cdrmack Date: Wed, 7 Feb 2024 18:44:59 +0100 Subject: [PATCH] remove unused local variables --- stage1/wasm2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stage1/wasm2c.c b/stage1/wasm2c.c index 7810f96050..ae47d55b91 100644 --- a/stage1/wasm2c.c +++ b/stage1/wasm2c.c @@ -484,7 +484,6 @@ int main(int argc, char **argv) { (void)InputStream_skipToSection(&in, WasmSectionId_elem); { - uint32_t table_i = 0; uint32_t len = InputStream_readLeb128_u32(&in); fputs("static void init_elem(void) {\n", out); for (uint32_t segment_i = 0; segment_i < len; segment_i += 1) { @@ -518,7 +517,7 @@ int main(int argc, char **argv) { for (uint32_t func_i = 0; func_i < len; func_i += 1) { FuncGen_reset(&fg); - uint32_t code_len = InputStream_readLeb128_u32(&in); + InputStream_readLeb128_u32(&in); const struct FuncType *func_type = &types[funcs[func_i].type_idx]; fputs("static ", out); switch (func_type->result->len) {