RFR: 8352612: No way to add back lint categories after "none" [v5]
Archie Cobbs
acobbs at openjdk.org
Fri Apr 11 13:17:11 UTC 2025
> This PR relates to the `-Xlint:none` flag. Currently, it not only disables all lint categories as one would expect, but it also disables all non-mandatory warnings, period. In other words, `-Xlint:none` has `-nowarn` as a hidden side-effect. So for example, trying to do `-Xlint:none,serial` to enable only the `serial` lint category is futile: the category will be enabled but the warnings won't ever appear. This PR removes that hidden side-effect, and also clarifies some of the help output.
Archie Cobbs has updated the pull request incrementally with one additional commit since the last revision:
Man page wording improvements per review comments.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24227/files
- new: https://git.openjdk.org/jdk/pull/24227/files/ffede9b0..41ee595d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24227&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24227&range=03-04
Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/24227.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24227/head:pull/24227
PR: https://git.openjdk.org/jdk/pull/24227
More information about the compiler-dev
mailing list