This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32887] warning for memset with zero size
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2007 13:57:41 -0000
- Subject: [Bug middle-end/32887] warning for memset with zero size
- References: <bug-32887-14862@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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