diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-01-12 16:08:52 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-01-12 16:08:52 -0500 |
commit | 4bb45b99963a4c236d3076fe2c169e79fead5526 (patch) | |
tree | e48d9da26c5966c874ae4aa73789e266a1938c41 /src | |
parent | e9f9ebfe65014ff701b3c0712d1036afea161d1f (diff) |
Fix some functions that were declared static then defined not-static.
Per testing with a compiler that whines about this.
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpython/plpy_main.c | 2 | ||||
-rw-r--r-- | src/pl/plpython/plpy_plpymodule.c | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/pl/plpython/plpy_main.c b/src/pl/plpython/plpy_main.c index 384784796cc..203a8548a43 100644 --- a/src/pl/plpython/plpy_main.c +++ b/src/pl/plpython/plpy_main.c @@ -131,7 +131,7 @@ _PG_init(void) * This should only be called once from _PG_init. Initialize the Python * interpreter and global data. */ -void +static void PLy_init_interp(void) { static PyObject *PLy_interp_safe_globals = NULL; diff --git a/src/pl/plpython/plpy_plpymodule.c b/src/pl/plpython/plpy_plpymodule.c index 37ea2a490d9..4fc24951994 100644 --- a/src/pl/plpython/plpy_plpymodule.c +++ b/src/pl/plpython/plpy_plpymodule.c @@ -274,49 +274,49 @@ PLy_generate_spi_exceptions(PyObject *mod, PyObject *base) */ static PyObject *PLy_output(volatile int, PyObject *, PyObject *); -PyObject * +static PyObject * PLy_debug(PyObject *self, PyObject *args) { return PLy_output(DEBUG2, self, args); } -PyObject * +static PyObject * PLy_log(PyObject *self, PyObject *args) { return PLy_output(LOG, self, args); } -PyObject * +static PyObject * PLy_info(PyObject *self, PyObject *args) { return PLy_output(INFO, self, args); } -PyObject * +static PyObject * PLy_notice(PyObject *self, PyObject *args) { return PLy_output(NOTICE, self, args); } -PyObject * +static PyObject * PLy_warning(PyObject *self, PyObject *args) { return PLy_output(WARNING, self, args); } -PyObject * +static PyObject * PLy_error(PyObject *self, PyObject *args) { return PLy_output(ERROR, self, args); } -PyObject * +static PyObject * PLy_fatal(PyObject *self, PyObject *args) { return PLy_output(FATAL, self, args); } -PyObject * +static PyObject * PLy_quote_literal(PyObject *self, PyObject *args) { const char *str; @@ -333,7 +333,7 @@ PLy_quote_literal(PyObject *self, PyObject *args) return ret; } -PyObject * +static PyObject * PLy_quote_nullable(PyObject *self, PyObject *args) { const char *str; @@ -353,7 +353,7 @@ PLy_quote_nullable(PyObject *self, PyObject *args) return ret; } -PyObject * +static PyObject * PLy_quote_ident(PyObject *self, PyObject *args) { const char *str; |