RFR: 8338155: Fix -Wzero-as-null-pointer-constant warnings involving PTHREAD_MUTEX_INITIALIZER
Dean Long
dlong at openjdk.org
Mon Aug 12 20:01:33 UTC 2024
On Mon, 12 Aug 2024 07:08:56 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> Please review this change to remove -Wzero-as-null-pointer-constant warnings
> involving the use of PTHREAD_MUTEX_INITIALIZER. We obviously can't change the
> initializer macro, and we can't avoid it. So we suppress that warning where
> the initializer is used.
>
> This involved adding a suppression pragma macro for that warning, which we
> haven't needed for any of the previous work on removing them. Hopefully we
> won't need it for many (or any) other places, but there are still a few places
> triggering that warning, and not all of them are otherwise simple to resolve.
>
> Testing: mach5 tier1
Marked as reviewed by dlong (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/20537#pullrequestreview-2233908098
More information about the hotspot-dev
mailing list