Bug#217075: -Wformat option ignored in g++-3.3?
Package: g++-3.3
Version: 3.3.2-1
Severity: normal
I'm confused about the -Wformat behaviour in newer g++ 3.3 releases.
It works for plain C, but seems to be ignored for C++ (in some cases
at least). Look at this:
egon@tuscan:~$ cat testik.cc
#include <stdio.h>
int main()
{
printf("%d\n", 1, 1);
}
egon@tuscan:~$ g++-3.2 -Wformat testik.cc
testik.cc: In function `int main()':
testik.cc:5: warning: too many arguments for format
egon@tuscan:~$ g++-3.3 -Wformat testik.cc
egon@tuscan:~$
As in 3.2, in 3.0 and 2.95 it used to work as expected. Unfortunately
I'm not able to say if it's Debian-specific problem, or perhaps
libc6-dev's or gcc's upstream... My system is +- current i386 sid.
Thanks,
--
Egon Eckert, Heaven Industries, s.r.o.
E-mail: egon@heaven.industries.cz
Reply to: