Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)

(cherry picked from commit cb4bae72c9)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
This commit is contained in:
Miss Islington (bot) 2018-07-06 21:25:22 -07:00 committed by GitHub
parent 7bd6f0e550
commit 8e4c8513f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ static int execfunc(PyObject *m)
#define TEST_MODULE_DEF(name, slots, methods) TEST_MODULE_DEF_EX(name, slots, methods, 0, NULL)
PyModuleDef_Slot main_slots[] = {
static PyModuleDef_Slot main_slots[] = {
{Py_mod_exec, execfunc},
{0, NULL},
};
@ -486,7 +486,7 @@ createfunc_null(PyObject *spec, PyModuleDef *def)
return NULL;
}
PyModuleDef_Slot slots_create_null[] = {
static PyModuleDef_Slot slots_create_null[] = {
{Py_mod_create, createfunc_null},
{0, NULL},
};