public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13070] New: [3.3 / 3.4 regression] -Wformat option ignored in g++
@ 2003-11-16 12:33 debian-gcc at lists dot debian dot org
  2003-11-16 15:19 ` [Bug c++/13070] [3.3/3.4 " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2003-11-16 12:33 UTC (permalink / raw)
  To: gcc-bugs

[ 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-12-29  6:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-16 12:33 [Bug c++/13070] New: [3.3 / 3.4 regression] -Wformat option ignored in g++ debian-gcc at lists dot debian dot org
2003-11-16 15:19 ` [Bug c++/13070] [3.3/3.4 " pinskia at gcc dot gnu dot org
2003-11-19 16:12 ` pinskia at gcc dot gnu dot org
2003-12-10 22:57 ` janis187 at us dot ibm dot com
2003-12-21 21:30 ` pinskia at gcc dot gnu dot org
2003-12-24 22:07 ` gdr at gcc dot gnu dot org
2003-12-26 13:45 ` pinskia at gcc dot gnu dot org
2003-12-28 23:02 ` cvs-commit at gcc dot gnu dot org
2003-12-28 23:14 ` [Bug c++/13070] [3.3 " pinskia at gcc dot gnu dot org
2003-12-29  8:14 ` cvs-commit at gcc dot gnu dot org
2003-12-29  8:30 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).