Skip to content

Commit 341f80e

Browse files
authored
gh-75929: Fix configure function checks under -Wall -Werror (#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.
1 parent 0170881 commit 341f80e

3 files changed

Lines changed: 53 additions & 51 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a ``configure`` probe that could omit functions such
2+
as :func:`os.fchdir` from builds using ``-Wall -Werror``.

0 commit comments

Comments
 (0)