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. -- Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)