diff --git a/Misc/NEWS.d/next/Build/2026-11-04-14-37-13.gh-issue-75929.nELdwE.rst b/Misc/NEWS.d/next/Build/2026-11-04-14-37-13.gh-issue-75929.nELdwE.rst new file mode 100644 index 00000000000000..8ec7f8a0147399 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-11-04-14-37-13.gh-issue-75929.nELdwE.rst @@ -0,0 +1,2 @@ +Fix a ``configure`` probe that could omit functions such +as :func:`os.fchdir` from builds using ``-Wall -Werror``. diff --git a/configure b/configure index f85f487e0249d6..47df4c586b4dde 100755 --- a/configure +++ b/configure @@ -16885,7 +16885,7 @@ else case e in #( int main (void) { -void *x=ffi_prep_cif_var +(void)ffi_prep_cif_var ; return 0; } @@ -16926,7 +16926,7 @@ else case e in #( int main (void) { -void *x=ffi_prep_closure_loc +(void)ffi_prep_closure_loc ; return 0; } @@ -16967,7 +16967,7 @@ else case e in #( int main (void) { -void *x=ffi_closure_alloc +(void)ffi_closure_alloc ; return 0; } @@ -21956,7 +21956,7 @@ else case e in #( int main (void) { -void *x=freadlink +(void)freadlink ; return 0; } @@ -21998,7 +21998,7 @@ else case e in #( int main (void) { -void *x=strerror_r +(void)strerror_r ; return 0; } @@ -22041,7 +22041,7 @@ else case e in #( int main (void) { -void *x=pthread_attr_get_np +(void)pthread_attr_get_np ; return 0; } @@ -22241,7 +22241,7 @@ else case e in #( int main (void) { -void *x=chroot +(void)chroot ; return 0; } @@ -22282,7 +22282,7 @@ else case e in #( int main (void) { -void *x=link +(void)link ; return 0; } @@ -22323,7 +22323,7 @@ else case e in #( int main (void) { -void *x=symlink +(void)symlink ; return 0; } @@ -22364,7 +22364,7 @@ else case e in #( int main (void) { -void *x=fchdir +(void)fchdir ; return 0; } @@ -22405,7 +22405,7 @@ else case e in #( int main (void) { -void *x=fsync +(void)fsync ; return 0; } @@ -22446,7 +22446,7 @@ else case e in #( int main (void) { -void *x=fdatasync +(void)fdatasync ; return 0; } @@ -22510,7 +22510,7 @@ else case e in #( int main (void) { -void *x=epoll_create +(void)epoll_create ; return 0; } @@ -22551,7 +22551,7 @@ else case e in #( int main (void) { -void *x=epoll_create1 +(void)epoll_create1 ; return 0; } @@ -22597,7 +22597,7 @@ else case e in #( int main (void) { -void *x=kqueue +(void)kqueue ; return 0; } @@ -22641,7 +22641,7 @@ else case e in #( int main (void) { -void *x=prlimit +(void)prlimit ; return 0; } @@ -22683,7 +22683,7 @@ else case e in #( int main (void) { -void *x=_dyld_shared_cache_contains_path +(void)_dyld_shared_cache_contains_path ; return 0; } @@ -22732,7 +22732,7 @@ else case e in #( int main (void) { -void *x=memfd_create +(void)memfd_create ; return 0; } @@ -22778,7 +22778,7 @@ else case e in #( int main (void) { -void *x=eventfd +(void)eventfd ; return 0; } @@ -22824,7 +22824,7 @@ else case e in #( int main (void) { -void *x=timerfd_create +(void)timerfd_create ; return 0; } @@ -22872,7 +22872,7 @@ else case e in #( int main (void) { -void *x=ctermid_r +(void)ctermid_r ; return 0; } @@ -23011,7 +23011,7 @@ else case e in #( int main (void) { -void *x=getpagesize +(void)getpagesize ; return 0; } @@ -24898,7 +24898,7 @@ else case e in #( int main (void) { -void *x=hstrerror +(void)hstrerror ; return 0; } @@ -24939,7 +24939,7 @@ else case e in #( int main (void) { -void *x=getservbyname +(void)getservbyname ; return 0; } @@ -24980,7 +24980,7 @@ else case e in #( int main (void) { -void *x=getservbyport +(void)getservbyport ; return 0; } @@ -25021,7 +25021,7 @@ else case e in #( int main (void) { -void *x=gethostbyname +(void)gethostbyname ; return 0; } @@ -25062,7 +25062,7 @@ else case e in #( int main (void) { -void *x=gethostbyaddr +(void)gethostbyaddr ; return 0; } @@ -25103,7 +25103,7 @@ else case e in #( int main (void) { -void *x=getprotobyname +(void)getprotobyname ; return 0; } @@ -25152,7 +25152,7 @@ else case e in #( int main (void) { -void *x=inet_aton +(void)inet_aton ; return 0; } @@ -25198,7 +25198,7 @@ else case e in #( int main (void) { -void *x=inet_ntoa +(void)inet_ntoa ; return 0; } @@ -25244,7 +25244,7 @@ else case e in #( int main (void) { -void *x=inet_pton +(void)inet_pton ; return 0; } @@ -25290,7 +25290,7 @@ else case e in #( int main (void) { -void *x=getpeername +(void)getpeername ; return 0; } @@ -25336,7 +25336,7 @@ else case e in #( int main (void) { -void *x=getsockname +(void)getsockname ; return 0; } @@ -25382,7 +25382,7 @@ else case e in #( int main (void) { -void *x=accept +(void)accept ; return 0; } @@ -25428,7 +25428,7 @@ else case e in #( int main (void) { -void *x=bind +(void)bind ; return 0; } @@ -25474,7 +25474,7 @@ else case e in #( int main (void) { -void *x=connect +(void)connect ; return 0; } @@ -25520,7 +25520,7 @@ else case e in #( int main (void) { -void *x=listen +(void)listen ; return 0; } @@ -25566,7 +25566,7 @@ else case e in #( int main (void) { -void *x=recvfrom +(void)recvfrom ; return 0; } @@ -25612,7 +25612,7 @@ else case e in #( int main (void) { -void *x=sendto +(void)sendto ; return 0; } @@ -25658,7 +25658,7 @@ else case e in #( int main (void) { -void *x=setsockopt +(void)setsockopt ; return 0; } @@ -25704,7 +25704,7 @@ else case e in #( int main (void) { -void *x=socket +(void)socket ; return 0; } @@ -25752,7 +25752,7 @@ else case e in #( int main (void) { -void *x=setgroups +(void)setgroups ; return 0; } @@ -27279,7 +27279,7 @@ else case e in #( int main (void) { -void *x=socketpair +(void)socketpair ; return 0; } @@ -27904,7 +27904,7 @@ else case e in #( int main (void) { -void *x=acospi +(void)acospi ; return 0; } @@ -27946,7 +27946,7 @@ else case e in #( int main (void) { -void *x=asinpi +(void)asinpi ; return 0; } @@ -27988,7 +27988,7 @@ else case e in #( int main (void) { -void *x=atanpi +(void)atanpi ; return 0; } @@ -28030,7 +28030,7 @@ else case e in #( int main (void) { -void *x=atan2pi +(void)atan2pi ; return 0; } @@ -28072,7 +28072,7 @@ else case e in #( int main (void) { -void *x=cospi +(void)cospi ; return 0; } @@ -28114,7 +28114,7 @@ else case e in #( int main (void) { -void *x=sinpi +(void)sinpi ; return 0; } @@ -28156,7 +28156,7 @@ else case e in #( int main (void) { -void *x=tanpi +(void)tanpi ; return 0; } diff --git a/configure.ac b/configure.ac index 4b8e6d59a5cf46..1c4a8fac991f48 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,7 @@ AC_DEFUN([PY_CHECK_FUNC], [for $1], [py_var], [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([$2], [void *x=$1])], + [AC_LANG_PROGRAM([$2], [(void)$1])], [AS_VAR_SET([py_var], [yes])], [AS_VAR_SET([py_var], [no])])] )