diff options
author | Sam James <sam@gentoo.org> | 2022-11-04 02:32:49 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-11-04 18:36:04 +0100 |
commit | 73c686b69a426cc226cd18e49880bb72d1c1db71 (patch) | |
tree | 2ebd56c86da8aa4a43439bc0bd51826ed940d4c3 | |
parent | [3.10] gh-98517: Fix buffer overflows in _sha3 module (#98519) (diff) | |
download | cpython-gentoo-3.9.15_p2.tar.gz cpython-gentoo-3.9.15_p2.tar.bz2 cpython-gentoo-3.9.15_p2.zip |
gh-99086: Build: Fix -Wimplicit-int in PTHREAD_SCOPE_SYSTEM check (#99085)gentoo-3.9.15_p2
Clang 16 makes -Wimplicit-int fatal by default.
Avoids errors like:
```
conftest.c:142:7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
```
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst | 1 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 2 |
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 00000000000..e320ecfdfbb --- /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 a75dd40df79..a7e8437d503 100755 --- a/configure +++ b/configure @@ -11156,7 +11156,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 6d075d28479..f14b2167791 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); |