This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: warn on memset with constant length 0
On Mon, 2006-12-04 at 14:58 +0100, =?iso-8859-1?q?M=FCller?=, Dirk
> warning: memset used with constant zero length parameter
> though I cannot figure out which gcc version broke it.
GCC never did the warning, glibc did that warning
The main reason why we don't get the warning with __builtin_memset
currently is because the inline function which glibc has never sees
Really if you want GCC to do the warning, the warning should happen in
the front-end so you don't get the false warnings which we could get