[Python-checkins] Fix a compile warning in selectmodule.c. (GH-16617)

Xiang Zhang webhook-mailer at python.org
Mon Oct 7 08:01:58 EDT 2019


https://github.com/python/cpython/commit/303475e87372aacb17990802538e440735a69525
commit: 303475e87372aacb17990802538e440735a69525
branch: master
author: Xiang Zhang <angwerzx at 126.com>
committer: GitHub <noreply at github.com>
date: 2019-10-07T20:01:54+08:00
summary:

Fix a compile warning in selectmodule.c. (GH-16617)

files:
M Modules/selectmodule.c

diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 98da7d5027f4a..79cc1b265559b 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -2362,7 +2362,7 @@ static PyMethodDef kqueue_queue_methods[] = {
 
 static PyType_Slot kqueue_queue_Type_slots[] = {
     {Py_tp_dealloc, kqueue_queue_dealloc},
-    {Py_tp_doc, select_kqueue__doc__},
+    {Py_tp_doc, (void*)select_kqueue__doc__},
     {Py_tp_getset, kqueue_queue_getsetlist},
     {Py_tp_methods, kqueue_queue_methods},
     {Py_tp_new, select_kqueue},



More information about the Python-checkins mailing list