memcpy warnings on 3.5.0

Jason Evans jasone at canonware.com
Tue Jan 28 23:07:22 PST 2014


On Jan 28, 2014, at 11:00 PM, Jason Evans <jasone at canonware.com> wrote:
> On Jan 28, 2014, at 7:49 PM, Eduardo Silva <edsiper at gmail.com> wrote:
>> are these warnings relevants ?
> 
> My guess is that you don’t have heap profiling enabled (—enable-prof), and that the compiler is complaining about what is effectively dead code.  An easy solution is to protect the memcpy() with a conditional:
> 
> 	if (config_prof)
> 
> I’ll make a note to do something like this in order to silence the warnings.

I took a slightly different approach:

	https://github.com/jemalloc/jemalloc/commit/5f60afa01eb2cf7d44024d162a1ecc6cceedcca1

Jason


More information about the jemalloc-discuss mailing list