summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2009-05-29 03:44:31 (GMT)
committerJeffrey Yasskin <jyasskin@gmail.com>2009-05-29 03:44:31 (GMT)
commit7937d939b1e41e869ebd6a41787c186482f5950f (patch)
tree4dbf1908e42190ac3d3f877d55453f8d8f189477 /Python
parent822b87f276d11cbe0d45f91cbeb9e9abdf231c7e (diff)
downloadcpython-7937d939b1e41e869ebd6a41787c186482f5950f.zip
cpython-7937d939b1e41e869ebd6a41787c186482f5950f.tar.gz
cpython-7937d939b1e41e869ebd6a41787c186482f5950f.tar.bz2
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.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/Python/compile.c b/Python/compile.c
index df12bde..00e0462 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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.
*/