mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
remove unused local variables
This commit is contained in:
parent
0aff1f9ce5
commit
d3cf911a80
1 changed files with 1 additions and 2 deletions
|
|
@ -484,7 +484,6 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
(void)InputStream_skipToSection(&in, WasmSectionId_elem);
|
(void)InputStream_skipToSection(&in, WasmSectionId_elem);
|
||||||
{
|
{
|
||||||
uint32_t table_i = 0;
|
|
||||||
uint32_t len = InputStream_readLeb128_u32(&in);
|
uint32_t len = InputStream_readLeb128_u32(&in);
|
||||||
fputs("static void init_elem(void) {\n", out);
|
fputs("static void init_elem(void) {\n", out);
|
||||||
for (uint32_t segment_i = 0; segment_i < len; segment_i += 1) {
|
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) {
|
for (uint32_t func_i = 0; func_i < len; func_i += 1) {
|
||||||
FuncGen_reset(&fg);
|
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];
|
const struct FuncType *func_type = &types[funcs[func_i].type_idx];
|
||||||
fputs("static ", out);
|
fputs("static ", out);
|
||||||
switch (func_type->result->len) {
|
switch (func_type->result->len) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue