From 8b3a08698c86a94a3943ec941fe35b930046cd25 Mon Sep 17 00:00:00 2001 From: Xiao Bao Clark Date: Fri, 16 Oct 2015 22:50:24 +1100 Subject: [PATCH] Add void to empty function parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the gcc warning: tornado/speedups.c:49:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] initspeedups() { ^ --- tornado/speedups.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado/speedups.c b/tornado/speedups.c index 174a6129..c59bda00 100644 --- a/tornado/speedups.c +++ b/tornado/speedups.c @@ -41,12 +41,12 @@ static struct PyModuleDef speedupsmodule = { }; PyMODINIT_FUNC -PyInit_speedups() { +PyInit_speedups(void) { return PyModule_Create(&speedupsmodule); } #else // Python 2.x PyMODINIT_FUNC -initspeedups() { +initspeedups(void) { Py_InitModule("tornado.speedups", methods); } #endif