]> granicus.if.org Git - gc/commit
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>
Tue, 1 Nov 2016 23:06:36 +0000 (02:06 +0300)
commit2c572396237d92ea2cfb6655531917062dbd148d
treec4752748ae00fe2b0367ab9e09cf93c1fb028c7c
parentcefadde56f707319b9fa4fd2d3d50da8e67cd44b
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