]> granicus.if.org Git - gc/commitdiff
Add missing GC_ATTR_UNUSED annotation to GC_store_debug_info_inner
authorIvan Maidanski <ivmai@mail.ru>
Fri, 3 Feb 2012 18:16:40 +0000 (22:16 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 3 Feb 2012 18:16:40 +0000 (22:16 +0400)
* 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

index 00586d1890a884eebd69f67de8c8858a59aa2dc6..932aaacae52a465900cf1cbcf880c5ad5e9631a0 100644 (file)
--- a/dbg_mlc.c
+++ b/dbg_mlc.c
 #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);