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 driver/84440] New: unrecognized command line option '-Wno-format-invalid-specifier'


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84440

            Bug ID: 84440
           Summary: unrecognized command line option
                    '-Wno-format-invalid-specifier'
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stsp at users dot sourceforge.net
  Target Milestone: ---

Format attribute is usually used with
the custom printf-alike funcs. It is not
unusual for those funcs to implement more
format specifiers than printf() does.
clang has '-Wno-format-invalid-specifier'
to avoid checking those, and only check
the printf-compatible subset. But gcc
only says this:
---
cc1: warning: unrecognized command line option '-Wno-format-invalid-specifier'
---

Would be nice to have this option, as
it increases the usability of the
format-checking attributes. Plus the
better compatibility with clang.

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