]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCO...
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Sat, 5 Nov 2022 09:27:47 +0000 (10:27 +0100)
committerGitHub <noreply@github.com>
Sat, 5 Nov 2022 09:27:47 +0000 (10:27 +0100)
(cherry picked from commit 12078e78f6e4a21f344e4eaff529e1ff3b97734f)

Co-authored-by: Sam James <sam@cmpct.info>
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 a150b7767d02a6d97a2320bef2a4078ba395a365..2d5be29abf17dc76ff85d2c6929e387df25ce886 100755 (executable)
--- a/configure
+++ b/configure
@@ -14454,7 +14454,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 79dc1f159a1bd2de3f3445800d14a9c8a001ed6e..2cce5fe008d2baa3974b996af00d7117c63ed94e 100644 (file)
@@ -4172,7 +4172,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);