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

ruby-changes:72635

From: Peter <ko1@a...>
Date: Fri, 22 Jul 2022 04:50:12 +0900 (JST)
Subject: [ruby-changes:72635] 3a5ea7c688 (master): Remove unused variable in array.c

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

From 3a5ea7c688b5c029ee8f69d84f49bc10b817714e Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Thu, 21 Jul 2022 15:49:26 -0400
Subject: Remove unused variable in array.c

array.c:460:14: warning: unused variable 'len' [-Wunused-variable]
        long len  = ARY_HEAP_LEN(ary);
---
 array.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/array.c b/array.c
index c0b49340c6..f398ac8e52 100644
--- a/array.c
+++ b/array.c
@@ -457,7 +457,6 @@ rb_ary_transient_heap_evacuate_(VALUE ary, int transient, int promote) https://github.com/ruby/ruby/blob/trunk/array.c#L457
         VALUE *new_ptr;
         const VALUE *old_ptr = ARY_HEAP_PTR(ary);
         long capa = ARY_HEAP_CAPA(ary);
-        long len  = ARY_HEAP_LEN(ary);
 
         assert(ARY_OWNS_HEAP_P(ary));
         assert(RARRAY_TRANSIENT_P(ary));
-- 
cgit v1.2.1


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

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