[前][次][番号順一覧][スレッド一覧]

ruby-changes:68766

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:13:29 +0900 (JST)
Subject: [ruby-changes:68766] 0b8473c4b4 (master): Fix pedantic returning void

https://git.ruby-lang.org/ruby.git/commit/?id=0b8473c4b4

From 0b8473c4b4cb8d2d70d7e0db3178f80557ea8cc7 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Fri, 12 Feb 2021 14:49:17 -0500
Subject: 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) https://github.com/ruby/ruby/blob/trunk/ujit_asm.c#L897
     // 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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]