Skip to content

Commit

Permalink
bpo-36362: Avoid unused variables when HAVE_DYNAMIC_LOADING is not de…
Browse files Browse the repository at this point in the history
  • Loading branch information
matrixise authored and miss-islington committed Mar 19, 2019
1 parent c70ab02 commit 0d765e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Python/import.c
Expand Up @@ -1983,13 +1983,14 @@ _imp_extension_suffixes_impl(PyObject *module)
/*[clinic end generated code: output=0bf346e25a8f0cd3 input=ecdeeecfcb6f839e]*/
{
PyObject *list;
const char *suffix;
unsigned int index = 0;

list = PyList_New(0);
if (list == NULL)
return NULL;
#ifdef HAVE_DYNAMIC_LOADING
const char *suffix;
unsigned int index = 0;

while ((suffix = _PyImport_DynLoadFiletab[index])) {
PyObject *item = PyUnicode_FromString(suffix);
if (item == NULL) {
Expand Down

0 comments on commit 0d765e3

Please sign in to comment.