From 24c2987d73ba0c3b5ae762e59238628785770c13 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 19 Jun 2018 00:50:07 +0300 Subject: Remove duplicate local variable in reclaim_block (fix of commit 6c1a92445) * reclaim.c [ENABLE_DISCLAIM] (GC_reclaim_block): Remove duplicate ok local variable definition (which hides the one in the outermost block and has the same value). --- reclaim.c | 1 - 1 file changed, 1 deletion(-) (limited to 'reclaim.c') diff --git a/reclaim.c b/reclaim.c index d50369e4..d17881a2 100644 --- a/reclaim.c +++ b/reclaim.c @@ -399,7 +399,6 @@ STATIC void GC_reclaim_block(struct hblk *hbp, word report_if_found) # ifdef ENABLE_DISCLAIM if (EXPECT(hhdr->hb_flags & HAS_DISCLAIM, 0)) { - struct obj_kind *ok = &GC_obj_kinds[hhdr->hb_obj_kind]; if ((*ok->ok_disclaim_proc)(hbp)) { /* Not disclaimed => resurrect the object. */ set_mark_bit_from_hdr(hhdr, 0); -- cgit v1.2.1