Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make two PyModuleDef_Slot symbols static in _testmultiphase. #8147

Merged
merged 1 commit into from
Jul 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Modules/_testmultiphase.c
Original file line number Diff line number Diff line change
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