[Bug c++/13070] New: [3.3 / 3.4 regression] -Wformat option ignored in g++
debian-gcc at lists dot debian dot org
gcc-bugzilla@gcc.gnu.org
Sun Nov 16 12:33:00 GMT 2003
[ forwarded from http://bugs.debian.org/217075 ]
The warning is printed, if gcc is used, but not, if g++ is used.
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:~$
--
Summary: [3.3 / 3.4 regression] -Wformat option ignored in g++
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13070
More information about the Gcc-bugs
mailing list