[libc-commits] [libc] [libc][pthread] fix -Wmissing-field-initializers (PR #126314)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Fri Feb 7 13:51:47 PST 2025
nickdesaulniers wrote:
Also, I assume that as opaque types, you could perhaps have non-zero values you'd like to initialize these members to, so declaring `static pthread_rwlock_t lock;` would produce a `pthread_rwlock_t` with DIFFERENT values than one initialized via `pthread_rwlock_init` (`static pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;` being the fix, IIUC).
https://github.com/llvm/llvm-project/pull/126314
More information about the libc-commits
mailing list