Blame 00407-gh-99086-fix-implicit-int-compiler-warning-in-configure-check-for-pthread_scope_system.patch

e0317d0
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
e0317d0
From: "Erlend E. Aasland" <erlend.aasland@protonmail.com>
e0317d0
Date: Sun, 6 Nov 2022 22:39:34 +0100
e0317d0
Subject: [PATCH] 00407: gh-99086: Fix implicit int compiler warning in
e0317d0
 configure check for PTHREAD_SCOPE_SYSTEM
e0317d0
e0317d0
Co-authored-by: Sam James <sam@cmpct.info>
e0317d0
---
e0317d0
 .../next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst    | 1 +
e0317d0
 configure                                                       | 2 +-
e0317d0
 configure.ac                                                    | 2 +-
e0317d0
 3 files changed, 3 insertions(+), 2 deletions(-)
e0317d0
 create mode 100644 Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst
e0317d0
e0317d0
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
e0317d0
new file mode 100644
e0317d0
index 0000000000..e320ecfdfb
e0317d0
--- /dev/null
e0317d0
+++ b/Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst
e0317d0
@@ -0,0 +1 @@
e0317d0
+Fix ``-Wimplicit-int`` compiler warning in :program:`configure` check for ``PTHREAD_SCOPE_SYSTEM``.
e0317d0
diff --git a/configure b/configure
b592ba2
index 51a811f18d..c5d42bed6d 100755
e0317d0
--- a/configure
e0317d0
+++ b/configure
b592ba2
@@ -10942,7 +10942,7 @@ else
e0317d0
       void *foo(void *parm) {
e0317d0
         return NULL;
e0317d0
       }
e0317d0
-      main() {
e0317d0
+      int main() {
e0317d0
         pthread_attr_t attr;
e0317d0
         pthread_t id;
e0317d0
         if (pthread_attr_init(&attr)) return (-1);
e0317d0
diff --git a/configure.ac b/configure.ac
e0317d0
index 8d0f025c61..79d45d9e49 100644
e0317d0
--- a/configure.ac
e0317d0
+++ b/configure.ac
e0317d0
@@ -3232,7 +3232,7 @@ if test "$posix_threads" = "yes"; then
e0317d0
       void *foo(void *parm) {
e0317d0
         return NULL;
e0317d0
       }
e0317d0
-      main() {
e0317d0
+      int main() {
e0317d0
         pthread_attr_t attr;
e0317d0
         pthread_t id;
e0317d0
         if (pthread_attr_init(&attr)) return (-1);