summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-06-19 00:50:07 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-06-19 00:51:09 +0300
commit24c2987d73ba0c3b5ae762e59238628785770c13 (patch)
tree6bd8ae0e77b94bebe25eb3b4b44a30276c50c1ca /reclaim.c
parentb1224990db6bf4b51b42e804ec6fff6ba730e9fb (diff)
downloadbdwgc-24c2987d73ba0c3b5ae762e59238628785770c13.tar.gz
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).
Diffstat (limited to 'reclaim.c')
-rw-r--r--reclaim.c1
1 files changed, 0 insertions, 1 deletions
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);