Skip to content

Commit 1bb709e

Browse files
committed
riscv(ffi): silence warning about nsp may used uninitialized
1 parent 931363a commit 1bb709e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lj_ccall.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@
706706
} \
707707
} \
708708
} else { /* Try to pass argument in GPRs. */ \
709+
mix.val = MIX_FAILED; \
709710
reghandle_gpr: \
710711
if (ngpr + n <= maxgpr) { \
711712
dp = &cc->gpr[ngpr]; \
@@ -1312,7 +1313,7 @@ static int ccall_set_args(lua_State *L, CTState *cts, CType *ct,
13121313
CTSize sz;
13131314
MSize n, isfp = 0, isva = 0;
13141315
#if LJ_TARGET_RISCV64
1315-
MSize onsp, mnsp;
1316+
MSize onsp = 0, mnsp = 0;
13161317
CCallStructMix mix = { .val = MIX_UNINIT };
13171318
int isstack = 0;
13181319
#endif

0 commit comments

Comments
 (0)