Skip to content

[3.15] gh-75929: Fix configure function checks under -Wall -Werror (GH-161343) - #161371

Merged
vstinner merged 1 commit into
python:3.15from
vasiliyk:backport-341f80e-3.15
Nov 5, 2026
Merged

vstinner merged 1 commit into
python:3.15from
vasiliyk:backport-341f80e-3.15

Conversation

@vasiliyk

@vasiliyk vasiliyk commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

I see on 3.15 PY_CHECK_CURSES_FUNC still uses the old void *x=$1 probe, so the 13 curses function checks have the same -Werror problem.

Main fixed that macro separately in gh-158078 (as a side effect), which was not backported.

…ror (pythonGH-161343)

Use `(void)$1` in `PY_CHECK_FUNC` instead of declaring an unused
variable. The unused-variable warning caused configure to report
declared functions such as `fchdir` as missing.
(cherry picked from commit 341f80e)

Co-authored-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
@vstinner
vstinner enabled auto-merge (squash) November 5, 2026 00:19
@vstinner
vstinner merged commit 1631d46 into python:3.15 Nov 5, 2026
53 checks passed
@vasiliyk
vasiliyk deleted the backport-341f80e-3.15 branch November 5, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants