Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g

-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without.
There's still a batch of non-prototype warnings in Xlib.h that I don't know how
to fix.
This commit is contained in:
Jeffrey Yasskin 2009-05-29 03:44:31 +00:00
parent 822b87f276
commit 7937d939b1
5 changed files with 4 additions and 26 deletions

View file

@ -535,18 +535,6 @@ compiler_exit_scope(struct compiler *c)
}
/* Allocate a new "anonymous" local variable.
Used by list comprehensions and with statements.
*/
static PyObject *
compiler_new_tmpname(struct compiler *c)
{
char tmpname[256];
PyOS_snprintf(tmpname, sizeof(tmpname), "_[%d]", ++c->u->u_tmpname);
return PyString_FromString(tmpname);
}
/* Allocate a new block and return a pointer to it.
Returns NULL on error.
*/