Skip to content

Commit 4faff35

Browse files
benjaminpmiss-islington
authored andcommitted
Make two PyModuleDef_Slot symbols static in _testmultiphase. (pythonGH-8147)
(cherry picked from commit cb4bae7) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent 972458a commit 4faff35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_testmultiphase.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static int execfunc(PyObject *m)
237237

238238
#define TEST_MODULE_DEF(name, slots, methods) TEST_MODULE_DEF_EX(name, slots, methods, 0, NULL)
239239

240-
PyModuleDef_Slot main_slots[] = {
240+
static PyModuleDef_Slot main_slots[] = {
241241
{Py_mod_exec, execfunc},
242242
{0, NULL},
243243
};
@@ -487,7 +487,7 @@ createfunc_null(PyObject *spec, PyModuleDef *def)
487487
return NULL;
488488
}
489489

490-
PyModuleDef_Slot slots_create_null[] = {
490+
static PyModuleDef_Slot slots_create_null[] = {
491491
{Py_mod_create, createfunc_null},
492492
{0, NULL},
493493
};

0 commit comments

Comments
 (0)