This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Wrong warnings with gcc 2.95.2
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Wrong warnings with gcc 2.95.2
- From: "Dieter Buerssner" <buers at gmx dot de>
- Date: Wed, 24 May 2000 16:05:08 +0200
The following code will produce three warnings, all wrong. (The first
two are not too surprising, because these are new C99 features.)
Version 2.7.2.1 did not produce the second and third warning.
E:\test>gcc -v
Reading specs from e:/djgpp203/lib/gcc-lib/djgpp/2.952/specs
gcc version 2.95.2 19991024 (release)
E:\test>cat pbug.c
int printf(const char *, ...);
int main(void)
{
long long ll = 0;
long double ld = 0.0;
printf("%lld, %Lf\n", ll, ld);
return 0;
}
E:\test>gcc -O -Wall -ansi -pedantic pbug.c
pbug.c: In function `main':
pbug.c:5: warning: ANSI C does not support `long long'
pbug.c:7: warning: ANSI C does not support the `ll' length modifier
pbug.c:7: warning: ANSI C does not support the `L' length modifier
--
Regards, Dieter Buerssner