On Tue, Dec 17, 2019 at 01:56:48PM +0100, Vincent Lefevre wrote: > On 2019-12-12 11:53:05 +0100, Josef Wolf wrote: > > Thanks for the help, Liu! > > > > This silenced the warning. > > The goal should not be to silence warnings, but to write portable > code. If you find a way to silence a warning, only to silence a > warning, this is useless. You'd better disable warnings. > > Here your code is still non-portable, perhaps *more* non-portable, > as only conversions between intptr_t and void * are guaranteed to > work. Moreover, the intptr_t type is optional. Any object pointer, sure (since you can convert those to pointer to void and back again). Is there *any* portable way to print function pointers? Other than accessing it as bytes :-) Segher