This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13123] -Wformat doesn't detect printf() format mismatches in C++ code
- From: "jthorn at aei dot mpg dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Nov 2003 14:06:03 -0000
- Subject: [Bug c++/13123] -Wformat doesn't detect printf() format mismatches in C++ code
- References: <20031119121137.13123.jthorn@aei.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jthorn at aei dot mpg dot de 2003-11-19 14:06 -------
Created an attachment (id=5171)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5171&action=view)
compiler command line, -v output, but no warning message for g++ -v
-save-temps -c -Wformat foo.cc
Compiling this source file as C++ (gcc invoked as /usr/local/bin/g++,
file name foo.cc) does *not* warn about the printf() format mismatch.
I can find nothing in the gcc documentation to say that -Wformat is
C-specific and/or should not work for C++ code, so IMHO this is a bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13123