Skip to content

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

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

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

Conversation

@vasiliyk

@vasiliyk vasiliyk commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

As with 3.15, 3.14 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 9f36d85 into python:3.14 Nov 5, 2026
87 of 89 checks passed
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