diff options
author | Peter Eisentraut | 2011-08-18 08:40:30 +0000 |
---|---|---|
committer | Peter Eisentraut | 2011-08-18 09:59:42 +0000 |
commit | f684bcb5238c13c8ba5a3770f4d0856677f99b35 (patch) | |
tree | 469587bdcd5a01ef68bdb630bd80383371f0f7e3 /src/pl/plpython/plpython.c | |
parent | 1a998474a7d88e8b340b179130b8368b734a3c30 (diff) |
Hide unused variable warnings under Python 3
Diffstat (limited to 'src/pl/plpython/plpython.c')
-rw-r--r-- | src/pl/plpython/plpython.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 3d1f0436026..b981dec7c2e 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -4170,7 +4170,9 @@ PLy_init_plpy(void) PyObject *main_mod, *main_dict, *plpy_mod; +#if PY_MAJOR_VERSION < 3 PyObject *plpy; +#endif /* * initialize plpy module @@ -4183,7 +4185,7 @@ PLy_init_plpy(void) elog(ERROR, "could not initialize PLy_SubtransactionType"); #if PY_MAJOR_VERSION >= 3 - plpy = PyModule_Create(&PLy_module); + PyModule_Create(&PLy_module); /* for Python 3 we initialized the exceptions in PyInit_plpy */ #else plpy = Py_InitModule("plpy", PLy_methods); |