mirror of
https://github.com/python/cpython.git
synced 2025-01-19 15:05:15 +08:00
Remove compile warnings for _testimportmodule
This commit is contained in:
parent
ef9a43b2c9
commit
1a714750cf
@ -17,7 +17,7 @@ static struct PyModuleDef _testimportmultiple = {
|
||||
NULL
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC PyInit__testimportmultiple()
|
||||
PyMODINIT_FUNC PyInit__testimportmultiple(void)
|
||||
{
|
||||
return PyModule_Create(&_testimportmultiple);
|
||||
}
|
||||
@ -34,7 +34,7 @@ static struct PyModuleDef _foomodule = {
|
||||
NULL
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC PyInit__testimportmultiple_foo()
|
||||
PyMODINIT_FUNC PyInit__testimportmultiple_foo(void)
|
||||
{
|
||||
return PyModule_Create(&_foomodule);
|
||||
}
|
||||
@ -51,7 +51,7 @@ static struct PyModuleDef _barmodule = {
|
||||
NULL
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC PyInit__testimportmultiple_bar(){
|
||||
PyMODINIT_FUNC PyInit__testimportmultiple_bar(void){
|
||||
return PyModule_Create(&_barmodule);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user