ruby-changes:55732
From: Nobuyoshi <ko1@a...>
Date: Thu, 16 May 2019 14:43:48 +0900 (JST)
Subject: [ruby-changes:55732] Nobuyoshi Nakada: e970ab3339 (trunk): Suppress unused-but-set-variable warning
https://git.ruby-lang.org/ruby.git/commit/?id=e970ab3339 From e970ab3339109b89b4251887e39412af20348156 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 15 May 2019 23:17:18 +0900 Subject: Suppress unused-but-set-variable warning diff --git a/gc.c b/gc.c index b71c501..32e6c3d 100644 --- a/gc.c +++ b/gc.c @@ -8269,6 +8269,8 @@ gc_verify_compaction_references(int argc, VALUE *argv, VALUE mod) https://github.com/ruby/ruby/blob/trunk/gc.c#L8269 moved_list = RANY(moved_list)->as.moved.next; poison_object(current); } +#else + (void)moved_list; #endif /* GC after compaction to eliminate T_MOVED */ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/