]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYST...
authorSam James <sam@cmpct.info>
Sat, 5 Nov 2022 08:30:31 +0000 (08:30 +0000)
committerGitHub <noreply@github.com>
Sat, 5 Nov 2022 08:30:31 +0000 (09:30 +0100)
Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst [new file with mode: 0644]
configure
configure.ac

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 (file)
index 0000000..e320ecf
--- /dev/null
@@ -0,0 +1 @@
+Fix ``-Wimplicit-int`` compiler warning in :program:`configure` check for ``PTHREAD_SCOPE_SYSTEM``.
index edd3771784c76f3072c5d5ed86e7cf3b76a096a8..ab3d6ee3c2eace3d4398a4c6db78dd458b78a12a 100755 (executable)
--- 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);
index 0ca5e3fcbf5496c085a373e21a135f5faf60fdcd..aebe2408c0b3a349df172fae847be95c58daa67e 100644 (file)
@@ -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);