This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32887] New: memset warning
- From: "cnstar9988 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2007 01:20:54 -0000
- Subject: [Bug c/32887] New: memset warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc -O3 -Wall test.c
can gernerate warning on gcc-4.2.1 on x86.
but no warning on gcc-4.2.1/x64. even -m32 or -m64.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
char x[20];
memset(x,19,0);
return 0;
}
--
Summary: memset warning
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cnstar9988 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32887