This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28199] -Wmissing-format-attribute produces false positives on vprintf() like functions
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2006 11:42:39 -0000
- Subject: [Bug c/28199] -Wmissing-format-attribute produces false positives on vprintf() like functions
- References: <bug-28199-12833@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from schwab at suse dot de 2006-06-29 11:42 -------
>From (gcc)Function Attributes:
For functions where the
arguments are not available to be checked (such as `vprintf'),
specify the third parameter as zero.
void foo (const char *, va_list) __attribute__ ((format (printf, 1, 0)));
--
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28199