]> granicus.if.org Git - gc/commitdiff
Remove duplicate local variable in reclaim_block
authorIvan Maidanski <ivmai@mail.ru>
Mon, 18 Jun 2018 21:50:07 +0000 (00:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 18 Jun 2018 21:51:09 +0000 (00:51 +0300)
(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

index d50369e4408b1cf67045147584407067aa24d78e..d17881a2db2c1464b5c628e02daf6aa6c7019fb7 100644 (file)
--- 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);