]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-142991: Fix socketmodule.c build: remove _Py_FALLTHROUGH (#143514)
authorVictor Stinner <vstinner@python.org>
Wed, 7 Jan 2026 14:17:06 +0000 (15:17 +0100)
committerGitHub <noreply@github.com>
Wed, 7 Jan 2026 14:17:06 +0000 (14:17 +0000)
Fix commit 7f936694dbc0dc0dbb07d98fa668776c4e4ca595 backport which
uses _Py_FALLTHROUGH: this macro only exists in Python 3.14 and
newer.

Modules/socketmodule.c

index 4362d95ae1ff13b3c19f4ff420e1ea6f38984574..6df7401133a41b6af91f5592c58a73706d064795 100644 (file)
@@ -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: