[Bug c/15657] New: -wall incorrectly diagnoses scanf("%a")

paulmoore100 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed May 26 14:19:00 GMT 2004


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



More information about the Gcc-bugs mailing list