From 4a753284854b16f6d8cc0d87525929b2d2362e71 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 9 May 2021 23:18:50 +0200 Subject: [PATCH] BUILD: memprof: make the old caller pointer a const in get_prof_bin() It's a const void* in the target, we can't use a void* in the caller, this causes a build warning with clang. --- src/activity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activity.c b/src/activity.c index 2080fd6dd..179ff1f32 100644 --- a/src/activity.c +++ b/src/activity.c @@ -187,7 +187,7 @@ static void memprof_free_initial_handler(void *ptr) static struct memprof_stats *memprof_get_bin(const void *ra) { int retries = 16; // up to 16 consecutive entries may be tested. - void *old; + const void *old; unsigned int bin; bin = memprof_hash_ptr(ra);