[llvm-bugs] [Bug 27159] Clang ignores -Wno-format-extra-args
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 31 07:55:27 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27159
David Blaikie <dblaikie at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dblaikie at gmail.com
Resolution|--- |INVALID
--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
Warning args are ordered, -Wno-* args must appear after the positive -W that
enabled the warning (in your example, I believe -Wall is enabling the warning
so -Wno-format-extra-args must appear after -Wall)
$ clang++ arg.cpp -Wall -fsyntax-only
arg.cpp:4:15: warning: data argument not used by format string
[-Wformat-extra-args]
printf("x", "y");
~~~ ^
1 warning generated.
$ clang++ arg.cpp -Wall -fsyntax-only -Wno-format-extra-args
$
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160331/847615f7/attachment.html>
More information about the llvm-bugs
mailing list