mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
Hide unused variable warnings under Python 3
This commit is contained in:
parent
1a998474a7
commit
f684bcb523
@ -4170,7 +4170,9 @@ PLy_init_plpy(void)
|
|||||||
PyObject *main_mod,
|
PyObject *main_mod,
|
||||||
*main_dict,
|
*main_dict,
|
||||||
*plpy_mod;
|
*plpy_mod;
|
||||||
|
#if PY_MAJOR_VERSION < 3
|
||||||
PyObject *plpy;
|
PyObject *plpy;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize plpy module
|
* initialize plpy module
|
||||||
@ -4183,7 +4185,7 @@ PLy_init_plpy(void)
|
|||||||
elog(ERROR, "could not initialize PLy_SubtransactionType");
|
elog(ERROR, "could not initialize PLy_SubtransactionType");
|
||||||
|
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#if PY_MAJOR_VERSION >= 3
|
||||||
plpy = PyModule_Create(&PLy_module);
|
PyModule_Create(&PLy_module);
|
||||||
/* for Python 3 we initialized the exceptions in PyInit_plpy */
|
/* for Python 3 we initialized the exceptions in PyInit_plpy */
|
||||||
#else
|
#else
|
||||||
plpy = Py_InitModule("plpy", PLy_methods);
|
plpy = Py_InitModule("plpy", PLy_methods);
|
||||||
|
Loading…
Reference in New Issue
Block a user