gh-111178: fix UBSan failures in `Modules/selectmodule.c` by picnixz · Pull Request #129792 · python/cpython
@vstinner I've observed that _select_exec was not declared static so I declared it static as well. I think it was an omission of not having it static. The commit message will be:
Fix some UBSan failures for `pollObject`, `devpollObject`, `pyEpoll_Object` as well as
for `kqueue_event_Object`, `kqueue_queue_Object` and `kqueue_tracking_after_fork`.
We also perform some cleanup by suppressing unused return values and renaming the
unused parameter in `METH_NOARGS` and getter/setter methods to `dummy` and `closure`
respectively for semantic purposes. We also explicitly declare `_select_exec` as a
`static` function.