Skip to content

Comment on Some simple tricks in C/C++parent

Comments

I really doubt any compilers will warn on void* casts in pure C. Usually the warning is if you do:

   int *x;
   char *y = x;
or similar. But if x was "void*", it really should work on all C compilers.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.