There are a few places where we initialize a pthread_mutex_t using PTHREAD_MUTEX_INITIALIZER. On at least some platforms there are literal zeros in that initializer macro that are used to initialize pointer-typed members in the pthread_mutex_t struct, triggering -Wzero-as-null-pointer-constant warnings when enabled.
- blocks
-
JDK-8332189 Enable -Wzero-as-null-pointer-constant
- Open
- links to
-
Commit(master) openjdk/jdk/73f7a5f1
-
Review(master) openjdk/jdk/20537