This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15657] New: -wall incorrectly diagnoses scanf("%a")
- From: "paulmoore100 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2004 02:20:03 -0000
- Subject: [Bug c/15657] New: -wall incorrectly diagnoses scanf("%a")
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
3.3.1 (suse 9) 3.2.2 (red hat9)
#include<stdio.h>
void f()
{
char *s=0;
scanf("%a", &s);
}
cc -Wall on this incorrectly produces "float format, pointer arg(arg2)"
it should say "invalid or incomplete format" or something like that
--
Summary: -wall incorrectly diagnoses scanf("%a")
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: paulmoore100 at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15657