https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
--- Comment #8 from Eric Gallager ---
clang has a -Wformat-pedantic:
https://clang.llvm.org/docs/DiagnosticsReference.html#wformat-pedantic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
Martin Sebor changed:
What|Removed |Added
CC||msebor at gcc dot gnu.org
See A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
--- Comment #6 from joseph at codesourcery dot com ---
On Mon, 7 Sep 2015, manu at gcc dot gnu.org wrote:
> Perhaps this should be called then -Wformat-undefined and not depend on
> -Wpedantic at all?
But if you're writing code for the GNU syst
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
--- Comment #5 from Manuel López-Ibáñez ---
Perhaps this should be called then -Wformat-undefined and not depend on
-Wpedantic at all?
We still need a -Wx option that is to -pedantic-errors what -Wpedantic is to
-Werror=pedantic ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
--- Comment #4 from Manuel López-Ibáñez ---
(In reply to jos...@codesourcery.com from comment #3)
> This should not be a pedwarn, because it only has undefined behavior in
> ISO C at runtime, not compile time.
But it is enabled by -pedantic -Wf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
--- Comment #3 from joseph at codesourcery dot com ---
On Mon, 7 Sep 2015, manu at gcc dot gnu.org wrote:
>
> Index: c-format.c
> ===
> --- c-format.c (revision 227095)
> +++ c-fo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
--- Comment #2 from Manuel López-Ibáñez ---
If maintaining the current behavior, which requires both -Wpedantic and
-Wformat, is desired, just define -Wformat-pedantic using LangEnabledBy(,
Wformat && Wpedantic) in c.opt.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
Manuel López-Ibáñez changed:
What|Removed |Added
Keywords||diagnostic, easyhack
S