This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/577
- To: nobody at gcc dot gnu dot org
- Subject: Re: c/577
- From: jsm28 at gcc dot gnu dot org
- Date: 28 Sep 2000 15:56:00 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: jsm28 at gcc dot gnu dot org
The following reply was made to PR c/577; it has been noted by GNATS.
From: jsm28@gcc.gnu.org
To: jsm28@cam.ac.uk, Andreas.Krakowczyk@fujitsu-siemens.com,
erwin.unruh@fujitsu-siemens.com, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c/577
Date: 28 Sep 2000 15:52:43 -0000
Synopsis: scanf, format specifiers '%E' and '%G' should refer to float
State-Changed-From-To: open->closed
State-Changed-By: jsm28
State-Changed-When: Thu Sep 28 08:52:43 2000
State-Changed-Why:
This is not a bug in GCC, but in your C library. GCC
(if given the -Wformat or -Wall option) does not object
to your formats. If your C library does not handle them
correctly, this is a bug in it; GCC does not provide a C
library.
I noticed that the declarations in your file - presumably
from your system headers - declared printf and scanf
to return void. The ISO C standard says they return int.
This suggests that your C library does not follow the
C standard very well. You could ask your vendor about
the availability of a more recent version of your C
library.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=577&database=gcc