]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCO...
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Sun, 6 Nov 2022 21:39:34 +0000 (22:39 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Nov 2022 21:39:34 +0000 (22:39 +0100)
(cherry picked from commit 12078e78f6e4a21f344e4eaff529e1ff3b97734f)

Co-authored-by: Sam James <sam@cmpct.info>
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 bad619963add87a4b1a438f15e127610e8499cf1..abd9982ba44d4d2950c4462dead48303ddd81279 100755 (executable)
--- a/configure
+++ b/configure
@@ -11325,7 +11325,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 cc69015b102bb7ddb74a00dc312ebde17b98a60d..540171f8617110b3c3dbe85fa81bd891463524cd 100644 (file)
@@ -3344,7 +3344,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);