-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8295717: Minimize disabled warnings in accessibility native code #10788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Welcome back ihse! A progress list of the required criteria for merging this PR into |
| -analyze- -Od -Gd -D_WINDOWS \ | ||
| -D_UNICODE -DUNICODE -RTC1 -EHsc, \ | ||
| DISABLED_WARNINGS_microsoft := 4267 4996, \ | ||
| DISABLED_WARNINGS_microsoft_jabswitch.cpp := 4267 4996, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lib only has one cpp file, so this change doesn't seem that useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect there's already a "fix disabled warnings in jdk.accessibility" .. can't we just fix that instead ?
I found it : https://bugs.openjdk.org/browse/JDK-8074847
Let me see what I can do about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I'll approve this anyway .. no harm
|
@magicus This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 32 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit 7a49c9b.
Your commit was automatically rebased without conflicts. |
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.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10788/head:pull/10788$ git checkout pull/10788Update a local copy of the PR:
$ git checkout pull/10788$ git pull https://git.openjdk.org/jdk pull/10788/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10788View PR using the GUI difftool:
$ git pr show -t 10788Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10788.diff