mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
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:
parent
822b87f276
commit
7937d939b1
5 changed files with 4 additions and 26 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue