RFR: 8295717: Minimize disabled warnings in accessibility native code
Magnus Ihse Bursie
ihse at openjdk.org
Thu Oct 20 19:01:02 UTC 2022
On Thu, 20 Oct 2022 18:06:09 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
>> After JDK-8294281, it is now possible to disable warnings for individual files instead for whole libraries. I used this opportunity to go through all disabled warnings in the accessibility native code.
>>
>> Any warnings that were only triggered in a few files were removed from the library as a whole, and changed to be only disabled for those files.
>
> make/modules/jdk.accessibility/Launcher.gmk line 46:
>
>> 44: -analyze- -Od -Gd -D_WINDOWS \
>> 45: -D_UNICODE -DUNICODE -RTC1 -EHsc, \
>> 46: DISABLED_WARNINGS_microsoft_jabswitch.cpp := 4267 4996, \
>
> This lib only has one cpp file, so this change doesn't seem that useful.
Heh, I did not notice that.
I'd still argue that this is a useful change. If some other file were ever to be added, it will not be covered by the blanked disabled warnings, and -- perhaps more important -- it is clear that these warnings can be addressed just by looking at a single file. This information has drastically increased the likelihood that a developer picks up the issue and actually resolves the warnings, as we have seen in other areas where I've done this "warnings-per-file" transition.
-------------
PR: https://git.openjdk.org/jdk/pull/10788
More information about the build-dev
mailing list