This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/84440] New: unrecognized command line option '-Wno-format-invalid-specifier'
- From: "stsp at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 18 Feb 2018 15:30:30 +0000
- Subject: [Bug driver/84440] New: unrecognized command line option '-Wno-format-invalid-specifier'
- Auto-submitted: auto-generated
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.