From 5e9ebee3b24d9c6bd09a4540ac9127d235448cad Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 3 Feb 2012 22:16:40 +0400 Subject: [PATCH] Add missing GC_ATTR_UNUSED annotation to GC_store_debug_info_inner * dbg_mlc.c (CROSSES_HBLK): Add missing parentheses. * dbg_mlc.c (GC_store_debug_info_inner): Tag "sz" argument with GC_ATTR_UNUSED (as unused if SHORT_DBG_HDRS). --- dbg_mlc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbg_mlc.c b/dbg_mlc.c index 00586d18..932aaaca 100644 --- a/dbg_mlc.c +++ b/dbg_mlc.c @@ -249,12 +249,12 @@ #endif /* KEEP_BACK_PTRS */ # define CROSSES_HBLK(p, sz) \ - (((word)(p + sizeof(oh) + sz - 1) ^ (word)p) >= HBLKSIZE) + (((word)((p) + sizeof(oh) + (sz) - 1) ^ (word)(p)) >= HBLKSIZE) /* Store debugging info into p. Return displaced pointer. */ /* This version assumes we do hold the allocation lock. */ -STATIC ptr_t GC_store_debug_info_inner(ptr_t p, word sz, const char *string, - int linenum) +STATIC ptr_t GC_store_debug_info_inner(ptr_t p, word sz GC_ATTR_UNUSED, + const char *string, int linenum) { word * result = (word *)((oh *)p + 1); -- 2.40.0