This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]