[ir_load]: Make report_undefined_var() static

It looks like report_undefined_var() is only used in ir_load.c and no
other places. Make it static.

Signed-off-by: Tony Su <tao.su@intel.com>
This commit is contained in:
Tony Su 2023-05-10 15:45:28 +08:00
parent f005199576
commit 5302cdf8ee
2 changed files with 2 additions and 2 deletions

2
ir.g
View File

@ -110,7 +110,7 @@ static void report_undefined_var(const char *str, uint32_t len, ir_ref val)
} }
} }
void ir_check_indefined_vars(ir_parser_ctx *p) static void ir_check_indefined_vars(ir_parser_ctx *p)
{ {
ir_strtab_apply(&p->var_tab, report_undefined_var); ir_strtab_apply(&p->var_tab, report_undefined_var);
exit(2); exit(2);

View File

@ -92,7 +92,7 @@ static void report_undefined_var(const char *str, uint32_t len, ir_ref val)
} }
} }
void ir_check_indefined_vars(ir_parser_ctx *p) static void ir_check_indefined_vars(ir_parser_ctx *p)
{ {
ir_strtab_apply(&p->var_tab, report_undefined_var); ir_strtab_apply(&p->var_tab, report_undefined_var);
exit(2); exit(2);