Integrated: 8335588: Fix -Wzero-as-null-pointer-constant warnings in calls to Node ctor

Kim Barrett kbarrett at openjdk.org
Wed Jul 3 22:06:24 UTC 2024


On Wed, 3 Jul 2024 02:38:59 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this change to callers of the Node constructor that were passing
> 0 as the first argument, which is of type Node*, thereby triggering
> -Wzero-as-null-pointer-constant warnings when enabled. Instead of 0, pass
> nullptr.  This removes over 2K warnings when building with that option.
> 
> Testing: mach5 tier1

This pull request has now been integrated.

Changeset: 3efa93ba
Author:    Kim Barrett <kbarrett at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3efa93ba1307cedf05609c0c04b2ba986a515f6e
Stats:     34 lines in 10 files changed: 0 ins; 0 del; 34 mod

8335588: Fix -Wzero-as-null-pointer-constant warnings in calls to Node ctor

Reviewed-by: thartmann, chagedorn

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

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


More information about the hotspot-compiler-dev mailing list