summaryrefslogtreecommitdiff
path: root/mark.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-08-04 09:58:04 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-08-05 08:27:34 +0300
commit2a6cee2a42c5a2fa69dc52b18b92420ee9bf61da (patch)
treeee7e33b581b308c3681dbbf985047a413920afd5 /mark.c
parente717f1191ba099d46a4eb0c56954b1b2e5333d5b (diff)
downloadbdwgc-2a6cee2a42c5a2fa69dc52b18b92420ee9bf61da.tar.gz
Fix 'passing arg 1 of GC_apply_to_all_blocks from incompatible type' error
(fix of commit e717f1191) Issue #460 (bdwgc). * backgraph.c [MAKE_BACK_GRAPH] (per_object_helper): Add GC_CALLBACK modifier; change 2nd argument type from word to GC_word. * checksums.c [CHECKSUMS] (GC_add_block): Likewise. * dbg_mlc.c [!SHORT_DBG_HDRS] (GC_check_heap_block): Likewise. * mark.c (clear_marks_for_block): Likewise. * misc.c (block_add_size): Likewise. * reclaim.c (GC_reclaim_block, GC_print_block_descr, GC_do_enumerate_reachable_objects): Likewise. * checksums.c [CHECKSUMS] (GC_check_blocks): Remove unnecessary cast of zero to word. * include/gc/gc_mark.h (GC_apply_to_all_blocks): Add GC_ATTR_NONNULL(1).
Diffstat (limited to 'mark.c')
-rw-r--r--mark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mark.c b/mark.c
index 3d806117..93b9a46d 100644
--- a/mark.c
+++ b/mark.c
@@ -166,7 +166,8 @@ GC_INNER void GC_set_hdr_marks(hdr *hhdr)
}
/* Clear all mark bits associated with block h. */
-static void clear_marks_for_block(struct hblk *h, word dummy GC_ATTR_UNUSED)
+static void GC_CALLBACK clear_marks_for_block(struct hblk *h,
+ GC_word dummy GC_ATTR_UNUSED)
{
hdr * hhdr = HDR(h);