From 0b8473c4b4cb8d2d70d7e0db3178f80557ea8cc7 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 12 Feb 2021 14:49:17 -0500 Subject: [PATCH] Fix pedantic returning void --- ujit_asm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ujit_asm.c b/ujit_asm.c index c580414539..a67eb7f7d6 100644 --- a/ujit_asm.c +++ b/ujit_asm.c @@ -897,7 +897,8 @@ void call_ptr(codeblock_t* cb, x86opnd_t scratch_reg, uint8_t* dst_ptr) // If the offset fits in 32-bit if (rel64 >= -2147483648 && rel64 <= 2147483647) { - return call_rel32(cb, (int32_t)rel64); + call_rel32(cb, (int32_t)rel64) + return; } // Move the pointer into the scratch register and call