summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2022-11-06 21:39:34 (GMT)
committerGitHub <noreply@github.com>2022-11-06 21:39:34 (GMT)
commit0d5b25bd8745ce26f80c50ae96dea2f44c9cf4fb (patch)
tree06606674eb8a8c715b2300c6fb77bc5b1c8fa22f
parent8eb4e2ce3f97da5d50caf95b0cbb6ad6984817d0 (diff)
downloadcpython-0d5b25bd8745ce26f80c50ae96dea2f44c9cf4fb.zip
cpython-0d5b25bd8745ce26f80c50ae96dea2f44c9cf4fb.tar.gz
cpython-0d5b25bd8745ce26f80c50ae96dea2f44c9cf4fb.tar.bz2
[3.10] gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYSTEM (GH-99085) (#99119)
(cherry picked from commit 12078e78f6e4a21f344e4eaff529e1ff3b97734f) Co-authored-by: Sam James <sam@cmpct.info> Co-authored-by: Sam James <sam@cmpct.info>
-rw-r--r--Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst1
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac2
3 files changed, 3 insertions, 2 deletions
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 0000000..e320ecf
--- /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 bad6199..abd9982 100755
--- 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);
diff --git a/configure.ac b/configure.ac
index cc69015..540171f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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);