Integrated: 8345269: Fix -Wzero-as-null-pointer-constant warnings in ppc code

Kim Barrett kbarrett at openjdk.org
Wed Dec 11 19:41:15 UTC 2024


On Sat, 30 Nov 2024 17:15:17 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this change to remove -Wzero-as-null-pointer-constant warnings
> in ppc code.
> 
> Most places involve just changing literal 0 to nullptr.
> 
> Removed a dead return after ShouldNotReachHere() that is no longer needed.
> 
> Removed some unused Address constructors that had a default address argument
> with literal 0 as the default value.  These could have been changed to use
> nullptr as the default value, but since they aren't used...
> 
> Testing:
> GHA sanity test build, with and without -Wzero-as-null-pointer-constant enabled.
> I don't have the capability to run tests for this platform, so hoping someone
> from the aix-ppc maintainers can do more testing.

This pull request has now been integrated.

Changeset: 08bdeedf
Author:    Kim Barrett <kbarrett at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/08bdeedfd355b61f7cdabbe943657691e5af2c82
Stats:     43 lines in 9 files changed: 0 ins; 9 del; 34 mod

8345269: Fix -Wzero-as-null-pointer-constant warnings in ppc code

Reviewed-by: mdoerr, mbaesken

-------------

PR: https://git.openjdk.org/jdk/pull/22466


More information about the hotspot-dev mailing list