Commit 24cb518c authored by Greg Ward's avatar Greg Ward

Remove a couple of unused local variables (bug #445960, compiler warnings

on IRIX 6.5).
parent 7b943d02
...@@ -866,7 +866,6 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen, ...@@ -866,7 +866,6 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen,
{ {
int i, npath; int i, npath;
size_t len, namelen; size_t len, namelen;
struct _frozen *f;
struct filedescr *fdp = NULL; struct filedescr *fdp = NULL;
FILE *fp = NULL; FILE *fp = NULL;
#ifndef RISCOS #ifndef RISCOS
...@@ -903,7 +902,7 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen, ...@@ -903,7 +902,7 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen,
strcpy(buf, name); strcpy(buf, name);
return &fd_builtin; return &fd_builtin;
} }
if ((f = find_frozen(name)) != NULL) { if ((find_frozen(name)) != NULL) {
strcpy(buf, name); strcpy(buf, name);
return &fd_frozen; return &fd_frozen;
} }
...@@ -1388,9 +1387,8 @@ static int ...@@ -1388,9 +1387,8 @@ static int
init_builtin(char *name) init_builtin(char *name)
{ {
struct _inittab *p; struct _inittab *p;
PyObject *mod;
if ((mod = _PyImport_FindExtension(name, name)) != NULL) if (_PyImport_FindExtension(name, name) != NULL)
return 1; return 1;
for (p = PyImport_Inittab; p->name != NULL; p++) { for (p = PyImport_Inittab; p->name != NULL; p++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment