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 c/15657] New: -wall incorrectly diagnoses scanf("%a")


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


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