diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 3 | ||||
-rw-r--r-- | Python/exceptions.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c index 1fb85e752e..0939f059c4 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -374,7 +374,8 @@ struct compiling { PyFutureFeatures *c_future; /* pointer to module's __future__ */ }; -int is_free(int v) +static int +is_free(int v) { if ((v & (USE | DEF_FREE)) && !(v & (DEF_LOCAL | DEF_PARAM | DEF_GLOBAL))) diff --git a/Python/exceptions.c b/Python/exceptions.c index f262ef2a97..ad8021e0db 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -420,7 +420,7 @@ SystemExit__init__(PyObject *self, PyObject *args) } -PyMethodDef SystemExit_methods[] = { +static PyMethodDef SystemExit_methods[] = { { "__init__", SystemExit__init__, METH_VARARGS}, {NULL, NULL} }; @@ -836,7 +836,7 @@ SyntaxError__str__(PyObject *self, PyObject *args) } -PyMethodDef SyntaxError_methods[] = { +static PyMethodDef SyntaxError_methods[] = { {"__init__", SyntaxError__init__, METH_VARARGS}, {"__str__", SyntaxError__str__, METH_VARARGS}, {NULL, NULL} |