From: Victor Stinner Date: Thu, 1 Sep 2011 22:11:43 +0000 (+0200) Subject: Remove unused variable if Python is build without threads X-Git-Tag: v3.2.3rc1~594 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0af0306396eb05c8c55951bc3dc04aa0a4c007ae;p=thirdparty%2FPython%2Fcpython.git Remove unused variable if Python is build without threads --- diff --git a/Python/import.c b/Python/import.c index 23752eeb720c..93defeff7fb4 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2349,7 +2349,9 @@ PyImport_ImportModuleNoBlock(const char *name) { PyObject *result; PyObject *modules; +#ifdef WITH_THREAD long me; +#endif /* Try to get the module from sys.modules[name] */ modules = PyImport_GetModuleDict();