summaryrefslogtreecommitdiffstats
path: root/Modules/_testmultiphase.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-07-07 04:05:51 (GMT)
committerGitHub <noreply@github.com>2018-07-07 04:05:51 (GMT)
commitcb4bae72c965ce946e0fdb48db67c73afdcb5649 (patch)
tree9722d26c8301929b0b4b7698a381851107a5edc6 /Modules/_testmultiphase.c
parentb0274f2cddd36b49fe5080efbe160277ef546471 (diff)
downloadcpython-cb4bae72c965ce946e0fdb48db67c73afdcb5649.zip
cpython-cb4bae72c965ce946e0fdb48db67c73afdcb5649.tar.gz
cpython-cb4bae72c965ce946e0fdb48db67c73afdcb5649.tar.bz2
Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)
Diffstat (limited to 'Modules/_testmultiphase.c')
-rw-r--r--Modules/_testmultiphase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c
index 68404f2..5776df7 100644
--- a/Modules/_testmultiphase.c
+++ b/Modules/_testmultiphase.c
@@ -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},
};