summaryrefslogtreecommitdiff
path: root/allchblk.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-10-20 00:33:18 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-10-20 00:40:08 +0300
commit16260f977ff75d60f547e2ffb9522a475e38a4da (patch)
tree5c47515f6f3421e7cdcd3e76d5ca0f6cdbf86c62 /allchblk.c
parent94d3d5cbb1face170c5687013184937c2efc9a5f (diff)
downloadbdwgc-16260f977ff75d60f547e2ffb9522a475e38a4da.tar.gz
Eliminate 'parameter can be declared as const pointer' cppcheck warnings
(refactoring) * allchblk.c (free_list_index_of): Add const to pointer argument. * backgraph.c (is_in_progress): Likewise. * include/private/gc_priv.h [MSWIN32 || MSWINCE || CYGWIN32] (GC_is_heap_base): Likewise. * os_dep.c [USE_WINALLOC && !REDIRECT_MALLOC] (GC_is_malloc_heap_base): Likewise. * os_dep.c [MSWIN32 || MSWINCE || CYGWIN32] (GC_is_heap_base): Likewise. * os_dep.c [CHECKSUMS && (GWW_VDB || SOFT_VDB) || PROC_VDB] (GC_or_pages): Likewise. * finalize.c (GC_grow_table): Add const to entries_ptr argument. * os_dep.c [USE_WINALLOC && !REDIRECT_MALLOC] (GC_is_malloc_heap_base): Change while loop to for.
Diffstat (limited to 'allchblk.c')
-rw-r--r--allchblk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/allchblk.c b/allchblk.c
index 81c5af89..a0a3f313 100644
--- a/allchblk.c
+++ b/allchblk.c
@@ -164,7 +164,7 @@ STATIC int GC_hblk_fl_from_blocks(word blocks_needed)
/* Return the free list index on which the block described by the header */
/* appears, or -1 if it appears nowhere. */
-static int free_list_index_of(hdr *wanted)
+static int free_list_index_of(const hdr *wanted)
{
int i;