From: Victor Stinner Date: Wed, 7 Jan 2026 14:17:06 +0000 (+0100) Subject: [3.13] gh-142991: Fix socketmodule.c build: remove _Py_FALLTHROUGH (#143514) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43e495d6f4e0efe6e7a54625d559f2f656f36916;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-142991: Fix socketmodule.c build: remove _Py_FALLTHROUGH (#143514) Fix commit 7f936694dbc0dc0dbb07d98fa668776c4e4ca595 backport which uses _Py_FALLTHROUGH: this macro only exists in Python 3.14 and newer. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 4362d95ae1ff..6df7401133a4 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2652,7 +2652,6 @@ getsockaddrlen(PySocketSockObject *s, socklen_t *len_ret) #ifdef AF_DIVERT case AF_DIVERT: /* FreeBSD divert(4) sockets use sockaddr_in: fall-through */ - _Py_FALLTHROUGH; #endif /* AF_DIVERT */ case AF_INET: