From: Sam James Date: Sat, 5 Nov 2022 08:30:31 +0000 (+0000) Subject: gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYST... X-Git-Tag: v3.12.0a2~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12078e78f6e4a21f344e4eaff529e1ff3b97734f;p=thirdparty%2FPython%2Fcpython.git gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYSTEM (#99085) --- 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 000000000000..e320ecfdfbb7 --- /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 edd3771784c7..ab3d6ee3c2ea 100755 --- a/configure +++ b/configure @@ -15350,7 +15350,7 @@ else void *foo(void *parm) { return NULL; } - main() { + int main() { pthread_attr_t attr; pthread_t id; if (pthread_attr_init(&attr)) return (-1); diff --git a/configure.ac b/configure.ac index 0ca5e3fcbf54..aebe2408c0b3 100644 --- a/configure.ac +++ b/configure.ac @@ -4361,7 +4361,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)) return (-1);