Fix some functions that were declared static then defined not-static.
authorTom Lane
Mon, 12 Jan 2015 21:08:49 +0000 (16:08 -0500)
committerTom Lane
Mon, 12 Jan 2015 21:08:49 +0000 (16:08 -0500)
Per testing with a compiler that whines about this.

src/pl/plpython/plpy_main.c
src/pl/plpython/plpy_plpymodule.c

index 4438721589e3c865cd223e8689b7cf0bc0d6b945..cc94f0a8aeed07d92ffb918f1bd35f3fd9f57bde 100644 (file)
@@ -132,7 +132,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;
index 37ea2a490d963eecdbebd07889ad9a4e0aa0f7c1..4fc2495199479ac41a24aa9a4dd8e782e4a708f5 100644 (file)
@@ -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;