Add void to empty function parameter

This fixes the gcc warning:

tornado/speedups.c:49:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 initspeedups() {
 ^
This commit is contained in:
Xiao Bao Clark 2015-10-16 22:50:24 +11:00
parent f2b3d8eb9f
commit 8b3a08698c
1 changed files with 2 additions and 2 deletions

View File

@ -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