-
Notifications
You must be signed in to change notification settings - Fork 232
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
8326109: GCC 13 reports maybe-uninitialized warnings for jni.cpp with dtrace enabled #2525
Conversation
👋 Welcome back andrew! A progress list of the required criteria for merging this PR into |
|
Thanks Paul. |
@gnu-andrew |
@gnu-andrew This change now passes all automated pre-integration checks. 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 9 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit 382942d.
Your commit was automatically rebased without conflicts. |
@gnu-andrew Pushed as commit 382942d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This is a simple fix that allows newer versions of
gcc
to build OpenJDK without--disable-warnings-as-errors
(i.e. the default)When
dtrace
is enabled, the compilation ofjni.cpp
throws up a number ofmaybe-uninitialized
warnings due to the expansion of theDTRACE_PROBE
macros fromsdt.hpp
e.g.I don't see the same on 17u as
-Wno-maybe-uninitialized
is one of a number of warnings disabled inCompileJvm.gmk
. This 11u only patch does the more specific fix of disabling the warning onjni.cpp
only and only whendtrace
is enabled.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2525/head:pull/2525
$ git checkout pull/2525
Update a local copy of the PR:
$ git checkout pull/2525
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2525/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2525
View PR using the GUI difftool:
$ git pr show -t 2525
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2525.diff
Webrev
Link to Webrev Comment