summaryrefslogtreecommitdiff
path: root/src/backend/utils/mmgr
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-11-21 16:49:40 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-11-21 16:49:40 +0100
commitef8fe693606add7edb563e6c8a63c6ef608338c0 (patch)
treedd45bfc0004fcd9202723477e552a8e3e3501282 /src/backend/utils/mmgr
parent2aabaa52dffdb78fbefaef95163881c15e18ef29 (diff)
Remove useless casts to (void *)
Their presence causes (small) risks of hiding actual type mismatches or silently discarding qualifiers. Some have been missed in 7f798aca1d5 and some are new ones along the same lines. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/aR8Yv%2BuATLKbJCgI%40ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/utils/mmgr')
-rw-r--r--src/backend/utils/mmgr/bump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/mmgr/bump.c b/src/backend/utils/mmgr/bump.c
index a263861fe43..e60ec94e139 100644
--- a/src/backend/utils/mmgr/bump.c
+++ b/src/backend/utils/mmgr/bump.c
@@ -407,7 +407,7 @@ BumpAllocChunkFromBlock(MemoryContext context, BumpBlock *block, Size size,
#ifdef MEMORY_CONTEXT_CHECKING
chunk = (MemoryChunk *) block->freeptr;
#else
- ptr = (void *) block->freeptr;
+ ptr = block->freeptr;
#endif
/* point the freeptr beyond this chunk */