diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-02-03 22:16:40 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-02-03 22:16:40 +0400 |
commit | 5e9ebee3b24d9c6bd09a4540ac9127d235448cad (patch) | |
tree | 0b50b9e9f459bdda25cc7a41bf5a75756f74e8db /dbg_mlc.c | |
parent | 379100c269d28475499457deb3af1d137058820b (diff) | |
download | bdwgc-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |