Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7391e25

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 5b3ce2c commit 7391e25

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/pl/plpython/plpy_main.c

+1-1
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

+10-10
Original file line numberDiff line numberDiff line change
@@ -273,49 +273,49 @@ PLy_generate_spi_exceptions(PyObject *mod, PyObject *base)
273273
*/
274274
static PyObject *PLy_output(volatile int, PyObject *, PyObject *);
275275

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

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

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

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

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

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

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

318-
PyObject *
318+
static PyObject *
319319
PLy_quote_literal(PyObject *self, PyObject *args)
320320
{
321321
const char *str;
@@ -332,7 +332,7 @@ PLy_quote_literal(PyObject *self, PyObject *args)
332332
return ret;
333333
}
334334

335-
PyObject *
335+
static PyObject *
336336
PLy_quote_nullable(PyObject *self, PyObject *args)
337337
{
338338
const char *str;
@@ -352,7 +352,7 @@ PLy_quote_nullable(PyObject *self, PyObject *args)
352352
return ret;
353353
}
354354

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

0 commit comments

Comments
 (0)