Improve gcc warning fix

This commit is contained in:
satk0 2024-10-07 22:07:26 +02:00 committed by Saúl Ibarra Corretgé
parent 52e0f24048
commit 86b1853a21
2 changed files with 2 additions and 3 deletions

View file

@ -38,7 +38,6 @@ xcheck_add_c_compiler_flag(-Wno-unused-parameter)
xcheck_add_c_compiler_flag(-Wno-unused-but-set-variable)
xcheck_add_c_compiler_flag(-Wno-array-bounds)
xcheck_add_c_compiler_flag(-Wno-format-truncation)
xcheck_add_c_compiler_flag(-Wno-format-zero-length)
xcheck_add_c_compiler_flag(-funsigned-char)
# ClangCL is command line compatible with MSVC, so 'MSVC' is set.

View file

@ -34643,7 +34643,7 @@ static JSString *JS_ReadString(BCReaderState *s)
}
#ifdef DUMP_READ_OBJECT
if (check_dump_flag(s->ctx->rt, DUMP_READ_OBJECT)) {
bc_read_trace(s, ""); // hex dump and indentation
bc_read_trace(s, "%s", ""); // hex dump and indentation
JS_DumpString(s->ctx->rt, p);
printf("\n");
}
@ -34703,7 +34703,7 @@ static int JS_ReadFunctionBytecode(BCReaderState *s, JSFunctionBytecode *b,
const uint8_t *save_ptr = s->ptr;
s->ptr = s->ptr_last + len;
s->level -= 4;
bc_read_trace(s, ""); // hex dump + indent
bc_read_trace(s, "%s", ""); // hex dump + indent
dump_single_byte_code(s->ctx, bc_buf + pos, b,
s->ptr - s->buf_start - len);
s->level += 4;