[PATCH] D143524: Make the -Wunused-template default.
Nikolas Klauser via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 23 12:29:45 PST 2023
philnik added a comment.
In D143524#4148344 <https://reviews.llvm.org/D143524#4148344>, @v.g.vassilev wrote:
> In D143524#4148271 <https://reviews.llvm.org/D143524#4148271>, @philnik wrote:
>
>> It looks like this warning is incompatible with `-Wctad-maybe-unsupported`. It warns that the deduction guide is unused, but the deduction guide is required suppress `-Wctad-maybe-unsupported`. https://godbolt.org/z/G8bMjYsbn
>
> That should not be too hard to fix. It seems that just need to ignore `CXXDeductionGuideDecl` in `Sema::ShouldRemoveFromUnused`. Is that blocking you?
No, I just added a `[[maybe_unused]]`. D144667 <https://reviews.llvm.org/D144667> should fix any libc++ problems.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143524/new/
https://reviews.llvm.org/D143524
More information about the cfe-commits
mailing list