jerpelea opened a new pull request, #19150: URL: https://github.com/apache/nuttx/pull/19150
## Summary struct pthread_cond_s contains three fields: sem, clockid, and wait_count. However, PTHREAD_COND_INITIALIZER only initialized the first two fields, which triggers -Wmissing-field-initializers when a condition variable is statically initialized. Initialize wait_count explicitly to zero so the macro matches the structure definition and remains warning-free with strict compiler flags. Validated with a minimal compile test using: pthread_cond_t cond = PTHREAD_COND_INITIALIZER; ## Impact RELEASE ## Testing CI -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
