]> granicus.if.org Git - python/commitdiff
bpo-34419: selectmodule.c does not compile on HP-UX due to bpo-31938 (GH-8796)
authorMichael Osipov <1983-01-06@gmx.net>
Fri, 17 Aug 2018 11:43:02 +0000 (13:43 +0200)
committerTal Einat <taleinat+github@gmail.com>
Fri, 17 Aug 2018 11:43:02 +0000 (14:43 +0300)
Fix compile errors reported by HP aCC by fixing bugs introduced in 6dc57e2a20c
which do not cause trouble on clang or GCC.

Patch by Michael Osipov.

Modules/selectmodule.c

index 15aca2724a2ca01fb51ed5fff13346da8076caeb..836af5429af582d7ead4307a6a2c8a3f9d453f21 100644 (file)
@@ -846,8 +846,6 @@ static PyObject *
 select_devpoll_modify_impl(devpollObject *self, int fd,
                            unsigned short eventmask)
 /*[clinic end generated code: output=bc2e6d23aaff98b4 input=48a820fc5967165d]*/
-static PyObject *
-devpoll_modify(devpollObject *self, PyObject *args)
 {
     return internal_devpoll_register(self, fd, eventmask, 1);
 }
@@ -895,7 +893,7 @@ select_devpoll_poll_impl(devpollObject *self, PyObject *timeout_obj)
 /*[clinic end generated code: output=2654e5457cca0b3c input=fd0db698d84f0333]*/
 {
     struct dvpoll dvp;
-    PyObject *result_list = NULL, *timeout_obj = NULL;
+    PyObject *result_list = NULL;
     int poll_result, i;
     PyObject *value, *num1, *num2;
     _PyTime_t timeout, ms, deadline = 0;