diff options
author | Greg Ward <gward@python.net> | 2001-10-04 14:52:06 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2001-10-04 14:52:06 (GMT) |
commit | 201baee7ea44b862d5cddcd61b89688fd1203d18 (patch) | |
tree | b6451c97ce206d2445cc54d8e171907514889465 | |
parent | 7c0a93d966edb9a2a6782b12ff31051dfa9cd287 (diff) | |
download | cpython-201baee7ea44b862d5cddcd61b89688fd1203d18.zip cpython-201baee7ea44b862d5cddcd61b89688fd1203d18.tar.gz cpython-201baee7ea44b862d5cddcd61b89688fd1203d18.tar.bz2 |
Remove a couple of unused local variables (bug #445960, compiler warnings
on IRIX 6.5).
-rw-r--r-- | Python/import.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/import.c b/Python/import.c index 52ad85e..a1cd16d 100644 --- a/Python/import.c +++ b/Python/import.c @@ -866,7 +866,6 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen, { int i, npath; size_t len, namelen; - struct _frozen *f; struct filedescr *fdp = NULL; FILE *fp = NULL; #ifndef RISCOS @@ -903,7 +902,7 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen, strcpy(buf, name); return &fd_builtin; } - if ((f = find_frozen(name)) != NULL) { + if ((find_frozen(name)) != NULL) { strcpy(buf, name); return &fd_frozen; } @@ -1388,9 +1387,8 @@ static int init_builtin(char *name) { struct _inittab *p; - PyObject *mod; - if ((mod = _PyImport_FindExtension(name, name)) != NULL) + if (_PyImport_FindExtension(name, name) != NULL) return 1; for (p = PyImport_Inittab; p->name != NULL; p++) { |