Skip to content

Commit

Permalink
Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)
Browse files Browse the repository at this point in the history
(cherry picked from commit cb4bae7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
  • Loading branch information
miss-islington and benjaminp committed Jul 7, 2018
1 parent 7bd6f0e commit 8e4c851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_testmultiphase.c
Expand Up @@ -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},
};
Expand Down Expand Up @@ -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},
};
Expand Down

0 comments on commit 8e4c851

Please sign in to comment.