-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8339309: unused-variable warnings happen in libfontmanager #20790
Conversation
👋 Welcome back ysuenaga! A progress list of the required criteria for merging this PR into |
@YaSuenag 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 736 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 |
@@ -98,7 +98,6 @@ JDKEXPORT int jdk_hb_shape( | |||
float devScale = 1.0f; | |||
if (getenv("HB_NODEVTX") != NULL) { | |||
float xPtSize = euclidianDistance(matrix[0], matrix[1]); | |||
float yPtSize = euclidianDistance(matrix[2], matrix[3]); |
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 paused to think about whether the problem is really that the division below should be using yPtSize .. in other words, the correct fix isn't always as obvious as it might look.
For the record, I think the unused var is becuase it was patterned after the code code in HBShaper.c which stores the yPtSize in a struct, but here it is clear that it isn't used.
fi->xPtSize = euclidianDistance(fi->matrix[0], fi->matrix[1]);
fi->yPtSize = euclidianDistance(fi->matrix[2], fi->matrix[3]);
if (getenv("HB_NODEVTX") != NULL) {
fi->devScale = fi->xPtSize / fi->ptSize;
Now, as far as I can they aren't used except in that fn, so probably can also go ..
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.
In addition, I've confirmed euclidianDistance
does not make any side-effects.
@YaSuenag This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
I do not stick my proposal, but I hope this will be fixed ASAP for modern C compilers. |
/integrate |
Going to push as commit 476d0f1.
Your commit was automatically rebased without conflicts. |
I saw following errors (warnings) when I tried to build OpenJDK on Fedora 40 with gcc-14.2.1-1.fc40.x86_64:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/20790/head:pull/20790
$ git checkout pull/20790
Update a local copy of the PR:
$ git checkout pull/20790
$ git pull https://git.openjdk.org/jdk.git pull/20790/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 20790
View PR using the GUI difftool:
$ git pr show -t 20790
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/20790.diff
Webrev
Link to Webrev Comment