Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d765e3

Browse files
matrixisemiss-islington
authored andcommitted
bpo-36362: Avoid unused variables when HAVE_DYNAMIC_LOADING is not defined (GH-12430)
https://bugs.python.org/issue36362
1 parent c70ab02 commit 0d765e3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Python/import.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,13 +1983,14 @@ _imp_extension_suffixes_impl(PyObject *module)
19831983
/*[clinic end generated code: output=0bf346e25a8f0cd3 input=ecdeeecfcb6f839e]*/
19841984
{
19851985
PyObject *list;
1986-
const char *suffix;
1987-
unsigned int index = 0;
19881986

19891987
list = PyList_New(0);
19901988
if (list == NULL)
19911989
return NULL;
19921990
#ifdef HAVE_DYNAMIC_LOADING
1991+
const char *suffix;
1992+
unsigned int index = 0;
1993+
19931994
while ((suffix = _PyImport_DynLoadFiletab[index])) {
19941995
PyObject *item = PyUnicode_FromString(suffix);
19951996
if (item == NULL) {

0 commit comments

Comments
 (0)