This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28199] New: -Wmissing-format-attribute produces false positives on vprintf() like functions
- From: "flameeyes at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2006 11:26:36 -0000
- Subject: [Bug c/28199] New: -Wmissing-format-attribute produces false positives on vprintf() like functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
As the summary says, -Wmissing-format-attribute produces false positive
warnings when a function is declared to use a vprintf-like prototype, and this
can't be fixed because the printf attribute does not support varargs functions
(of course).
I'm attaching a testcase that should identify the problem. I hope it's in the
right format, I don't follow development closely, so I just adapted a testcase
from Joseph S. Myers that was added with the fix to bug #1017.
HTH,
Diego
--
Summary: -Wmissing-format-attribute produces false positives on
vprintf() like functions
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: flameeyes at gentoo dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28199