1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-18 17:41:14 +03:00

Fix some functions that were declared static then defined not-static.

Per testing with a compiler that whines about this.
This commit is contained in:
Tom Lane 2015-01-12 16:08:49 -05:00
parent c704977e72
commit 71942a8b3a
2 changed files with 11 additions and 11 deletions

View File

@ -132,7 +132,7 @@ _PG_init(void)
* This should only be called once from _PG_init. Initialize the Python * This should only be called once from _PG_init. Initialize the Python
* interpreter and global data. * interpreter and global data.
*/ */
void static void
PLy_init_interp(void) PLy_init_interp(void)
{ {
static PyObject *PLy_interp_safe_globals = NULL; static PyObject *PLy_interp_safe_globals = NULL;

View File

@ -274,49 +274,49 @@ PLy_generate_spi_exceptions(PyObject *mod, PyObject *base)
*/ */
static PyObject *PLy_output(volatile int, PyObject *, PyObject *); static PyObject *PLy_output(volatile int, PyObject *, PyObject *);
PyObject * static PyObject *
PLy_debug(PyObject *self, PyObject *args) PLy_debug(PyObject *self, PyObject *args)
{ {
return PLy_output(DEBUG2, self, args); return PLy_output(DEBUG2, self, args);
} }
PyObject * static PyObject *
PLy_log(PyObject *self, PyObject *args) PLy_log(PyObject *self, PyObject *args)
{ {
return PLy_output(LOG, self, args); return PLy_output(LOG, self, args);
} }
PyObject * static PyObject *
PLy_info(PyObject *self, PyObject *args) PLy_info(PyObject *self, PyObject *args)
{ {
return PLy_output(INFO, self, args); return PLy_output(INFO, self, args);
} }
PyObject * static PyObject *
PLy_notice(PyObject *self, PyObject *args) PLy_notice(PyObject *self, PyObject *args)
{ {
return PLy_output(NOTICE, self, args); return PLy_output(NOTICE, self, args);
} }
PyObject * static PyObject *
PLy_warning(PyObject *self, PyObject *args) PLy_warning(PyObject *self, PyObject *args)
{ {
return PLy_output(WARNING, self, args); return PLy_output(WARNING, self, args);
} }
PyObject * static PyObject *
PLy_error(PyObject *self, PyObject *args) PLy_error(PyObject *self, PyObject *args)
{ {
return PLy_output(ERROR, self, args); return PLy_output(ERROR, self, args);
} }
PyObject * static PyObject *
PLy_fatal(PyObject *self, PyObject *args) PLy_fatal(PyObject *self, PyObject *args)
{ {
return PLy_output(FATAL, self, args); return PLy_output(FATAL, self, args);
} }
PyObject * static PyObject *
PLy_quote_literal(PyObject *self, PyObject *args) PLy_quote_literal(PyObject *self, PyObject *args)
{ {
const char *str; const char *str;
@ -333,7 +333,7 @@ PLy_quote_literal(PyObject *self, PyObject *args)
return ret; return ret;
} }
PyObject * static PyObject *
PLy_quote_nullable(PyObject *self, PyObject *args) PLy_quote_nullable(PyObject *self, PyObject *args)
{ {
const char *str; const char *str;
@ -353,7 +353,7 @@ PLy_quote_nullable(PyObject *self, PyObject *args)
return ret; return ret;
} }
PyObject * static PyObject *
PLy_quote_ident(PyObject *self, PyObject *args) PLy_quote_ident(PyObject *self, PyObject *args)
{ {
const char *str; const char *str;