diff --git a/Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst b/Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst new file mode 100644 index 00000000000000..e320ecfdfbb791 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst @@ -0,0 +1 @@ +Fix ``-Wimplicit-int`` compiler warning in :program:`configure` check for ``PTHREAD_SCOPE_SYSTEM``. diff --git a/configure b/configure index e39c16eee2b903..32c27a468d2f00 100755 --- a/configure +++ b/configure @@ -10837,7 +10837,7 @@ else void *foo(void *parm) { return NULL; } - main() { + int main() { pthread_attr_t attr; pthread_t id; if (pthread_attr_init(&attr)) exit(-1); diff --git a/configure.ac b/configure.ac index d5ca7172ca7c1f..f7668224be3633 100644 --- a/configure.ac +++ b/configure.ac @@ -3185,7 +3185,7 @@ if test "$posix_threads" = "yes"; then void *foo(void *parm) { return NULL; } - main() { + int main() { pthread_attr_t attr; pthread_t id; if (pthread_attr_init(&attr)) exit(-1);