https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109191
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- GCC does emit a -Wint-to-pointer-cast warning on this code, for the int to void * conversion. Is this reduced from a real-world example, or just synthesized by hand? I suppose in theory the analyzer could: (a) figure out that it reads all zeroes from the array and complain about the null pointer deref, and/or (b) complain that we're accessing beyond the end of an array