public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17212] -W(no)format-zero-length does not work with C++
[not found] <bug-17212-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-13 2:01 ` paolo.carlini at oracle dot com
2011-10-14 9:15 ` paolo at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-13 2:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17212
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC|gcc-bugs at gcc dot gnu.org |
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-13 02:00:07 UTC ---
This should be really fixed: the actual warning code exists in C++ too, is part
of -Wformat, and when it triggers it talks about [-Wformat-zero-length]!
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/17212] -W(no)format-zero-length does not work with C++
[not found] <bug-17212-4@http.gcc.gnu.org/bugzilla/>
2011-10-13 2:01 ` [Bug c++/17212] -W(no)format-zero-length does not work with C++ paolo.carlini at oracle dot com
@ 2011-10-14 9:15 ` paolo at gcc dot gnu.org
2011-10-14 9:18 ` paolo.carlini at oracle dot com
2011-10-14 9:18 ` paolo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-10-14 9:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17212
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-10-14 09:14:31 UTC ---
Author: paolo
Date: Fri Oct 14 09:14:26 2011
New Revision: 179963
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179963
Log:
/gcc
2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/17212
* c-family/c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
* doc/invoke.texi: Update.
/testsuite
2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/17212
* g++.dg/warn/format6.C: New.
* obj-c++.dg/warn6.mm: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/warn/format6.C
trunk/gcc/testsuite/obj-c++.dg/warn6.mm
Modified:
trunk/gcc/c-family/c.opt
trunk/gcc/doc/invoke.texi
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/17212] -W(no)format-zero-length does not work with C++
[not found] <bug-17212-4@http.gcc.gnu.org/bugzilla/>
2011-10-13 2:01 ` [Bug c++/17212] -W(no)format-zero-length does not work with C++ paolo.carlini at oracle dot com
2011-10-14 9:15 ` paolo at gcc dot gnu.org
@ 2011-10-14 9:18 ` paolo.carlini at oracle dot com
2011-10-14 9:18 ` paolo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-14 9:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17212
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-14 09:18:27 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/17212] -W(no)format-zero-length does not work with C++
[not found] <bug-17212-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2011-10-14 9:18 ` paolo.carlini at oracle dot com
@ 2011-10-14 9:18 ` paolo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-10-14 9:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17212
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-10-14 09:15:02 UTC ---
Author: paolo
Date: Fri Oct 14 09:14:58 2011
New Revision: 179964
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179964
Log:
/gcc
2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/17212
* c-family/c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
* doc/invoke.texi: Update.
/testsuite
2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/17212
* g++.dg/warn/format6.C: New.
* obj-c++.dg/warn6.mm: Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/17212] -W(no)format-zero-length does not work with C++
2004-08-27 15:00 [Bug c++/17212] New: " joerg dot richter at pdv-fs dot de
@ 2004-09-02 15:41 ` lerdsuwa at gcc dot gnu dot org
0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-09-02 15:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-09-02 15:41 -------
I think so. printf is from C library so the issue mentioned in
the mail that introduced -Wno-format-zero-length option still applies:
http://gcc.gnu.org/ml/gcc-patches/2002-05/msg01462.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-09-02 15:41:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17212
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-14 9:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-17212-4@http.gcc.gnu.org/bugzilla/>
2011-10-13 2:01 ` [Bug c++/17212] -W(no)format-zero-length does not work with C++ paolo.carlini at oracle dot com
2011-10-14 9:15 ` paolo at gcc dot gnu.org
2011-10-14 9:18 ` paolo.carlini at oracle dot com
2011-10-14 9:18 ` paolo at gcc dot gnu.org
2004-08-27 15:00 [Bug c++/17212] New: " joerg dot richter at pdv-fs dot de
2004-09-02 15:41 ` [Bug c++/17212] " lerdsuwa 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).