This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/32887] warning for memset with zero size



------- Comment #13 from manu at gcc dot gnu dot org  2007-07-26 13:57 -------
(In reply to comment #12)
> I want the warning.
> but why the warning is glibc's bug?

Andrew already tried to explain. It is a side-effect of a bug in glibc.

> because memset(x,19,0), is buggy code.
> I need the warning.

I think that is a sensible feature request, am I missing something Andrew? 
I hope someone will be so kind to implement it for you (or you decide to
implement it yourself).


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
            Summary|memset warning              |warning for memset with zero
                   |                            |size


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32887


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]