Clear some warnings and enable -Werror for NuttX (#1756)

This commit is contained in:
Huang Qi
2022-11-28 09:44:33 +08:00
committed by GitHub
parent 1465901f6f
commit 93d3d09aa1
7 changed files with 20 additions and 13 deletions

View File

@ -4094,8 +4094,9 @@ wasm_interp_call_wasm(WASMModuleInstance *module_inst, WASMExecEnv *exec_env,
if (argc < function->param_cell_num) {
char buf[128];
snprintf(buf, sizeof(buf),
"invalid argument count %u, must be no smaller than %u", argc,
function->param_cell_num);
"invalid argument count %" PRIu32
", must be no smaller than %u",
argc, function->param_cell_num);
wasm_set_exception(module_inst, buf);
return;
}