summaryrefslogtreecommitdiff
path: root/dbg_mlc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-02-03 22:16:40 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-02-03 22:16:40 +0400
commit5e9ebee3b24d9c6bd09a4540ac9127d235448cad (patch)
tree0b50b9e9f459bdda25cc7a41bf5a75756f74e8db /dbg_mlc.c
parent379100c269d28475499457deb3af1d137058820b (diff)
downloadbdwgc-5e9ebee3b24d9c6bd09a4540ac9127d235448cad.tar.gz
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).
Diffstat (limited to 'dbg_mlc.c')
-rw-r--r--dbg_mlc.c6
1 files 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);