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]

Wrong warnings with gcc 2.95.2


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


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