[llvm-bugs] [Bug 52244] -Wno-unused has no effect after -W
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 9 12:21:03 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=52244
Aaron Ballman <aaron at aaronballman.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aaron at aaronballman.com
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Aaron Ballman <aaron at aaronballman.com> ---
You are disabling -Wno-unused and not -Wno-unused-parameter. For compatibility
with GCC, Clang does not add -Wunused-parameter under -Wunused
(https://github.com/llvm/llvm-project/blob/0aabdad1ef96d489d63933e47bf19bcc832239e8/clang/include/clang/Basic/DiagnosticGroups.td#L889,
https://godbolt.org/z/7dM9ooPab), which is why you're not able to silence the
diagnostic as you expect.
--
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/20211109/17a1b66a/attachment.html>
More information about the llvm-bugs
mailing list