Integrated: 8338155: Fix -Wzero-as-null-pointer-constant warnings involving PTHREAD_MUTEX_INITIALIZER

Kim Barrett kbarrett at openjdk.org
Tue Aug 13 07:31:01 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

This pull request has now been integrated.

Changeset: 73f7a5f1
Author:    Kim Barrett <kbarrett at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/73f7a5f15dbba54a98f3916ff1190520ac07874d
Stats:     20 lines in 4 files changed: 16 ins; 0 del; 4 mod

8338155: Fix -Wzero-as-null-pointer-constant warnings involving PTHREAD_MUTEX_INITIALIZER

Reviewed-by: dholmes, dlong

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

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


More information about the hotspot-dev mailing list