Integrated: 8339156: Use more fine-granular clang unused warnings
Magnus Ihse Bursie
ihse at openjdk.org
Fri Aug 30 16:46:31 UTC 2024
On Thu, 29 Aug 2024 13:14:35 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.
This pull request has now been integrated.
Changeset: a528c4b3
Author: Magnus Ihse Bursie <ihse at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a528c4b370be1e7730778268cf8c52ffcfd27048
Stats: 60 lines in 16 files changed: 42 ins; 1 del; 17 mod
8339156: Use more fine-granular clang unused warnings
Reviewed-by: erikj, kbarrett
-------------
PR: https://git.openjdk.org/jdk/pull/20770
More information about the core-libs-dev
mailing list