Description
make build produces two -Wunused-variable warnings in ezc/src/codegen/codegen.c:
src/codegen/codegen.c:6291:9: warning: unused variable 'if_depth' [-Wunused-variable]
6291 | int if_depth = cg->loop_scope_depth;
| ^~~~~~~~
src/codegen/codegen.c:7374:25: warning: unused variable 'ct' [-Wunused-variable]
7374 | const char *ct = ez_type_to_c_cg(cg, f->type_name);
| ^~
Fix
Investigate whether these variables were intended to be used. If they're leftovers from incomplete work, remove the declarations entirely. If they were meant to be used downstream, complete the usage.
- Line 6291:
int if_depth = cg->loop_scope_depth; — assigned but never read
- Line 7374:
const char *ct = ez_type_to_c_cg(cg, f->type_name); — assigned but never read
The build should compile with zero warnings.
Description
make buildproduces two-Wunused-variablewarnings inezc/src/codegen/codegen.c:Fix
Investigate whether these variables were intended to be used. If they're leftovers from incomplete work, remove the declarations entirely. If they were meant to be used downstream, complete the usage.
int if_depth = cg->loop_scope_depth;— assigned but never readconst char *ct = ez_type_to_c_cg(cg, f->type_name);— assigned but never readThe build should compile with zero warnings.