From d5d0c6a7e7adc568075ef7b86c01aa5f1fd116be Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 11 Nov 2011 16:51:45 +0400 Subject: [PATCH] Resolve minor warnings (reported by GCC with '-pedantic') in checksums * checksums.c (GC_update_check_page): Explicitly cast a pointer argument of GC_printf to void* to match %p format specifier. --- checksums.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checksums.c b/checksums.c index b3d3fa9..414ee36 100644 --- a/checksums.c +++ b/checksums.c @@ -108,7 +108,7 @@ STATIC void GC_update_check_page(struct hblk *h, int index) pe -> new_sum = GC_checksum(h); # if !defined(MSWIN32) && !defined(MSWINCE) if (pe -> new_sum != 0x80000000 && !GC_page_was_ever_dirty(h)) { - GC_err_printf("GC_page_was_ever_dirty(%p) is wrong\n", h); + GC_err_printf("GC_page_was_ever_dirty(%p) is wrong\n", (void *)h); } # endif if (GC_page_was_dirty(h)) { -- 2.7.4