Skip to content

Commit 450d9f2

Browse files
committed
Fix some functions that were declared static then defined not-static.
Per testing with a compiler that whines about this.
1 parent 4072d91 commit 450d9f2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/pl/plpython/plpy_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ _PG_init(void)
123123
* This should only be called once from _PG_init. Initialize the Python
124124
* interpreter and global data.
125125
*/
126-
void
126+
static void
127127
PLy_init_interp(void)
128128
{
129129
static PyObject *PLy_interp_safe_globals = NULL;

src/pl/plpython/plpy_plpymodule.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -274,49 +274,49 @@ PLy_generate_spi_exceptions(PyObject *mod, PyObject *base)
274274
*/
275275
static PyObject *PLy_output(volatile int, PyObject *, PyObject *);
276276

277-
PyObject *
277+
static PyObject *
278278
PLy_debug(PyObject *self, PyObject *args)
279279
{
280280
return PLy_output(DEBUG2, self, args);
281281
}
282282

283-
PyObject *
283+
static PyObject *
284284
PLy_log(PyObject *self, PyObject *args)
285285
{
286286
return PLy_output(LOG, self, args);
287287
}
288288

289-
PyObject *
289+
static PyObject *
290290
PLy_info(PyObject *self, PyObject *args)
291291
{
292292
return PLy_output(INFO, self, args);
293293
}
294294

295-
PyObject *
295+
static PyObject *
296296
PLy_notice(PyObject *self, PyObject *args)
297297
{
298298
return PLy_output(NOTICE, self, args);
299299
}
300300

301-
PyObject *
301+
static PyObject *
302302
PLy_warning(PyObject *self, PyObject *args)
303303
{
304304
return PLy_output(WARNING, self, args);
305305
}
306306

307-
PyObject *
307+
static PyObject *
308308
PLy_error(PyObject *self, PyObject *args)
309309
{
310310
return PLy_output(ERROR, self, args);
311311
}
312312

313-
PyObject *
313+
static PyObject *
314314
PLy_fatal(PyObject *self, PyObject *args)
315315
{
316316
return PLy_output(FATAL, self, args);
317317
}
318318

319-
PyObject *
319+
static PyObject *
320320
PLy_quote_literal(PyObject *self, PyObject *args)
321321
{
322322
const char *str;
@@ -333,7 +333,7 @@ PLy_quote_literal(PyObject *self, PyObject *args)
333333
return ret;
334334
}
335335

336-
PyObject *
336+
static PyObject *
337337
PLy_quote_nullable(PyObject *self, PyObject *args)
338338
{
339339
const char *str;
@@ -353,7 +353,7 @@ PLy_quote_nullable(PyObject *self, PyObject *args)
353353
return ret;
354354
}
355355

356-
PyObject *
356+
static PyObject *
357357
PLy_quote_ident(PyObject *self, PyObject *args)
358358
{
359359
const char *str;

0 commit comments

Comments
 (0)