Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf684bcb

Browse files
committed
Hide unused variable warnings under Python 3
1 parent1a99847 commitf684bcb

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+
#ifPY_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
#ifPY_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)

[8]ページ先頭

©2009-2025 Movatter.jp