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

ruby-changes:55752

From: Kazuhiro <ko1@a...>
Date: Sat, 18 May 2019 14:39:52 +0900 (JST)
Subject: [ruby-changes:55752] Kazuhiro NISHIYAMA: bbb84a16fa (trunk): Add fall through comment for Coverity Scan

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

From bbb84a16fab8e715a108c318e9e0e019339eb972 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Sat, 18 May 2019 14:20:33 +0900
Subject: Add fall through comment for Coverity Scan


diff --git a/gc.c b/gc.c
index bf495ba..f6309b1 100644
--- a/gc.c
+++ b/gc.c
@@ -7260,6 +7260,7 @@ gc_is_moveable_obj(rb_objspace_t *objspace, VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L7260
             if (DYNAMIC_SYM_P(obj) && (RSYMBOL(obj)->id & ~ID_SCOPE_MASK)) {
                 return FALSE;
             }
+            /* fall through */
         case T_STRING:
         case T_OBJECT:
         case T_FLOAT:
-- 
cgit v0.10.2


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

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