From 214b2bc3ca0bfa37fdc96309860d7116e95ac53c Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Sun, 6 Nov 2022 22:39:34 +0100 Subject: [PATCH] 00407: gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYSTEM Co-authored-by: Sam James --- .../next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst | 1 + configure | 2 +- configure.ac | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst 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 00000000000000..e320ecfdfbb791 --- /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 b7be60eaa37ddb..51c2a231acddee 100755 --- a/configure +++ b/configure @@ -11151,7 +11151,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 aa515da46553a2..7729ccee9cfc26 100644 --- a/configure.ac +++ b/configure.ac @@ -3336,7 +3336,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);