summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-15 23:17:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-15 23:17:18 +0900
commite970ab3339109b89b4251887e39412af20348156 (patch)
tree21d38a8efae2d66fa7bf089ec515885118defdec
parent214e2f93aa6b0810353b67f320dab6aa63a97169 (diff)
Suppress unused-but-set-variable warning
-rw-r--r--gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index b71c501a5b..32e6c3da86 100644
--- a/gc.c
+++ b/gc.c
@@ -8269,6 +8269,8 @@ gc_verify_compaction_references(int argc, VALUE *argv, VALUE mod)
moved_list = RANY(moved_list)->as.moved.next;
poison_object(current);
}
+#else
+ (void)moved_list;
#endif
/* GC after compaction to eliminate T_MOVED */