From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 7 Jul 2018 04:25:22 +0000 (-0700) Subject: Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147) X-Git-Tag: v3.7.1rc1~316 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e4c8513f70efb122482d16952120b26e2e29f20;p=python Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147) (cherry picked from commit cb4bae72c965ce946e0fdb48db67c73afdcb5649) Co-authored-by: Benjamin Peterson --- diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c index 68404f2c6c..5776df7d76 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}, };