RFR: 8375738: Fix -Wzero-as-null-pointer-constant warnings in MacOSX/bsd code
Kim Barrett
kbarrett at openjdk.org
Wed Jan 21 06:05:46 UTC 2026
On Tue, 20 Jan 2026 19:24:16 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
>> Please review this change to MacOSX and bsd code to avoid using literal zero
>> as a null pointer constant, instead using nullptr.
>>
>> Also disable that warning when building the gtest framework with clang,
>> similarly to what was done in JDK-8338154 for gcc.
>>
>> Testing: mach5 tier1. Also tested with additional build changes to enable the
>> warning.
>
> Marked as reviewed by erikj (Reviewer).
Thanks for reviews @erikj79 and @dholmes-ora
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29329#issuecomment-3776351783
More information about the hotspot-runtime-dev
mailing list