Skip to content

Commit f684bcb

Browse files
committed
Hide unused variable warnings under Python 3
1 parent 1a99847 commit f684bcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pl/plpython/plpython.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4170,7 +4170,9 @@ PLy_init_plpy(void)
41704170
PyObject *main_mod,
41714171
*main_dict,
41724172
*plpy_mod;
4173+
#if PY_MAJOR_VERSION < 3
41734174
PyObject *plpy;
4175+
#endif
41744176

41754177
/*
41764178
* initialize plpy module
@@ -4183,7 +4185,7 @@ PLy_init_plpy(void)
41834185
elog(ERROR, "could not initialize PLy_SubtransactionType");
41844186

41854187
#if PY_MAJOR_VERSION >= 3
4186-
plpy = PyModule_Create(&PLy_module);
4188+
PyModule_Create(&PLy_module);
41874189
/* for Python 3 we initialized the exceptions in PyInit_plpy */
41884190
#else
41894191
plpy = Py_InitModule("plpy", PLy_methods);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy