Workaround more 'void pointers in calculations' cppcheck warnings
authorIvan Maidanski <ivmai@mail.ru>
Mon, 17 Oct 2016 07:53:19 +0000 (10:53 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 17 Oct 2016 07:53:19 +0000 (10:53 +0300)
commit957da90c6ff8084c48b7c8e3b4bcf6ecc83fb1b9
tree5c262e0a3248b5bc0955de1b80ccebbe6c14a8fd
parent5aaa3cc6f9aa5b2f0956f5be55e2143605ab7026
Workaround more 'void pointers in calculations' cppcheck warnings

* include/new_gc_alloc.h (single_client_gc_alloc_template::allocate,
single_client_gc_alloc_template::ptr_free_allocate,
single_client_gc_alloc_template::deallocate,
single_client_gc_alloc_template::ptr_free_deallocate,
single_client_traceable_alloc_template::allocate,
single_client_traceable_alloc_template::ptr_free_allocate,
single_client_traceable_alloc_template::deallocate,
single_client_traceable_alloc_template::ptr_free_deallocate): Replace
GC_Xobjfreelist_ptr+nwords with &GC_Xobjfreelist_ptr[nwords].
* reclaim.c (GC_start_reclaim): Replace fop++ with (*(word**)&fop)++.
* thread_local_alloc.c (return_freelists): Replace gfl+i with &gfl[i].
include/new_gc_alloc.h
reclaim.c
thread_local_alloc.c