1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-20 01:05:12 +00:00

Add a few asserts to quiet some of the -fanalyze calls in gcc 13.

This commit is contained in:
Calvin Rose
2023-06-01 10:52:34 -05:00
parent 5de889419f
commit d0aa7ef590
8 changed files with 16 additions and 10 deletions

View File

@@ -314,6 +314,7 @@ static Janet doframe(JanetStackFrame *frame) {
if (frame->func && frame->pc) {
Janet *stack = (Janet *)frame + JANET_FRAME_SIZE;
JanetArray *slots;
janet_assert(def != NULL, "def != NULL");
off = (int32_t)(frame->pc - def->bytecode);
janet_table_put(t, janet_ckeywordv("pc"), janet_wrap_integer(off));
if (def->sourcemap) {