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.