[Bug c/28199] -Wmissing-format-attribute produces false positives on vprintf() like functions

schwab at suse dot de gcc-bugzilla@gcc.gnu.org
Thu Jun 29 11:49:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list