Wrong warnings with gcc 2.95.2

Dieter Buerssner buers@gmx.de
Wed May 24 06:58:00 GMT 2000


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



More information about the Gcc-bugs mailing list