conftest.c:115:45: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
return pthread_create(NULL, NULL, NULL, NULL);
conftest.c:115:45: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
return pthread_create(NULL, NULL, NULL, NULL);
These refer to third and fourth parameters. This might be just cosmetic, but I can't say for sure that under no circumstances (especially with -Werror involved) this would not cause configure to incorrectly reject pthreads.
From build logs:
conftest.c:115:45: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
return pthread_create(NULL, NULL, NULL, NULL);
conftest.c:115:45: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
return pthread_create(NULL, NULL, NULL, NULL);
These refer to third and fourth parameters. This might be just cosmetic, but I can't say for sure that under no circumstances (especially with -Werror involved) this would not cause configure to incorrectly reject pthreads.