I don't see how this is possible. [1:27pm] 345>cat t.cpp #include <cstdio> #include <cstdint>
int main(int argc, char *argv[]) { printf("%jd", (intptr_t)argv[0]); return 0; } [1:28pm] 346>g++ -std=gnu++11 -Wall -Wold-style-cast t.cpp t.cpp: In function 'int main(int, char**)': t.cpp:7:32: warning: use of old-style cast [-Wold-style-cast] printf("%jd", (intptr_t)argv[0]); ^ > On Aug 11, 2019, at 8:24 PM, Kamil Rytarowski <n...@gmx.com> wrote: > > On 11.08.2019 19:22, Christos Zoulas wrote: >> Ok, with what version of event.h, the template specialization? >> I don't see how it is possible to not warn for (cast)foo.... >> >> christos >> > > This is for: > > http://netbsd.org/~kamil/patch-00138-EV_SET-CPP-cast.txt > > No templates. > > <sanitizer.log>