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

2006-06-29 Thread flameeyes at gentoo dot org
--- Comment #1 from flameeyes at gentoo dot org 2006-06-29 11:27 --- Created an attachment (id=11780) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11780&action=view) impossible-missing-format-attribute.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28199

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

2006-06-29 Thread schwab at suse dot de
--- 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__ ((form

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

2006-06-29 Thread flameeyes at gentoo dot org
--- Comment #3 from flameeyes at gentoo dot org 2006-06-29 12:17 --- Sorry, I think I misunderstood the error messages' chain, as when the __attribute__ is malformed (forgot a '('), the warning about the possible candidate appear anyway, so i thought it was simply being ignored with '0'