RFR: 8335588: Fix -Wzero-as-null-pointer-constant warnings in calls to Node ctor
Kim Barrett
kbarrett at openjdk.org
Wed Jul 3 22:06:23 UTC 2024
On Wed, 3 Jul 2024 05:28:12 GMT, Tobias Hartmann <thartmann 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
>
> Looks good to me.
Thanks for reviews @TobiHartmann and @chhagedorn
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19994#issuecomment-2207385331
More information about the hotspot-compiler-dev
mailing list