[Bug c/81141] missing warning using sizeof a/sizeof *a with a zero-length array
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 21 05:54:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81141
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to comment #3)
What I meant to say is: See also bug 81141 for a related request (limited to
strncpy). The patch submitted there issues a warning for a small subset of the
problem (strncpy) but doesn't specifically deal with zero-length arrays.
More information about the Gcc-bugs
mailing list