https://github.com/python/cpython/commit/e98d321bef16fa78f289c79bd332bf7a1cbf11b5
commit: e98d321bef16fa78f289c79bd332bf7a1cbf11b5
branch: main
author: Furkan Onder <[email protected]>
committer: vstinner <[email protected]>
date: 2025-03-13T11:25:43+01:00
summary:
gh-130099: Fix CAN socket fallthrough annotation for NetBSD compatibility
(#131026)
files:
M Modules/socketmodule.c
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index aa6f9c2bd8b705..9622dfed976dff 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -2258,7 +2258,9 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
switch (s->sock_proto) {
#ifdef CAN_RAW
case CAN_RAW:
+ #ifdef CAN_BCM
_Py_FALLTHROUGH;
+ #endif
#endif
#ifdef CAN_BCM
case CAN_BCM:
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]