diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-03-01 23:02:41 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-03-01 23:03:47 +0300 |
commit | dc8191fd5516c9fc3e722b8204f7af589c5be12a (patch) | |
tree | 5fd687b2f88c2d65a4ed2b8265d4c8b54a1a09e6 /mallocx.c | |
parent | 832d5bcb5a2461bf9ab0309bf75f90dfdc2f6cd6 (diff) | |
download | bdwgc-dc8191fd5516c9fc3e722b8204f7af589c5be12a.tar.gz |
Eliminate 'unused const variable' C++ warnings for [a][u]objfreelist_ptr
Issue #206 (bdwgc).
* Makefile.direct (SRCS): Add include/gc_alloc_ptrs.h.
* include/include.am (dist_noinst_HEADERS): Likewise.
* include/gc_alloc_ptrs.h: New file.
* include/new_gc_alloc.h (GC_objfreelist_ptr, GC_aobjfreelist_ptr,
GC_uobjfreelist_ptr, GC_auobjfreelist_ptr, GC_incr_bytes_allocd,
GC_incr_bytes_freed): Move to the declarations to gc_alloc_ptrs.h.
* include/new_gc_alloc.h: Include gc_alloc_ptrs.h; update comment.
* mallocx.c: Likewise.
Diffstat (limited to 'mallocx.c')
-rw-r--r-- | mallocx.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -40,6 +40,7 @@ /* Some externally visible but unadvertised variables to allow access to */ /* free lists from inlined allocators without including gc_priv.h */ /* or introducing dependencies on internal data structure layouts. */ +#include "gc_alloc_ptrs.h" void ** const GC_objfreelist_ptr = GC_objfreelist; void ** const GC_aobjfreelist_ptr = GC_aobjfreelist; void ** const GC_uobjfreelist_ptr = GC_uobjfreelist; |