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.
This commit is contained in:
parent
23c740ea51
commit
4a75328485
|
@ -187,7 +187,7 @@ static void memprof_free_initial_handler(void *ptr)
|
||||||
static struct memprof_stats *memprof_get_bin(const void *ra)
|
static struct memprof_stats *memprof_get_bin(const void *ra)
|
||||||
{
|
{
|
||||||
int retries = 16; // up to 16 consecutive entries may be tested.
|
int retries = 16; // up to 16 consecutive entries may be tested.
|
||||||
void *old;
|
const void *old;
|
||||||
unsigned int bin;
|
unsigned int bin;
|
||||||
|
|
||||||
bin = memprof_hash_ptr(ra);
|
bin = memprof_hash_ptr(ra);
|
||||||
|
|
Loading…
Reference in New Issue