Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 54412:1d8f24bf4399 legacy-trunk
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.
| author | Jeffrey Yasskin <jyasskin@gmail.com> |
|---|---|
| date | Fri, 29 May 2009 03:44:31 +0000 |
| parents | 0d7461c063e7 |
| children | 40c8c35492f1 |
line wrap: on
line diff
--- a/Python/compile.c Fri May 29 01:46:48 2009 +0000 +++ b/Python/compile.c Fri May 29 03:44:31 2009 +0000 @@ -535,18 +535,6 @@ } -/* 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. */
