RFR: 8339156: Use more fine-granular clang unused warnings [v2]
Erik Joelsson
erikj at openjdk.org
Fri Aug 30 16:46:30 UTC 2024
On Fri, 30 Aug 2024 11:35:51 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
>> Currently, we issue -Wno-unused for all files in clang, which is a rather big sledgehammer to get rid of some warnings that proliferate in a few areas of the build.
>>
>> We should instead leave -Wunused turned on (as done by -Wall) and use a much more fine-grained approach to disabling specific warnings in specific files or libraries.
>>
>> This is similar to what has been done for gcc in JDK-8339120.
>
> Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
>
> - Merge branch 'master' into finegranular-clang-unused
> - 8339156: Use more fine-granular clang unused warnings
Marked as reviewed by erikj (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/20770#pullrequestreview-2273037764
More information about the core-libs-dev
mailing list