From: Tim Peters Date: Tue, 15 Aug 2000 16:41:26 +0000 (+0000) Subject: Fix new compiler warnings. Unused var in compile.c. Argsize mismatches X-Git-Tag: v2.0b1~434 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b59ab42487a442e31b0622643e47912166dfbd21;p=thirdparty%2FPython%2Fcpython.git Fix new compiler warnings. Unused var in compile.c. Argsize mismatches in binascii.c (only on platforms with signed chars -- although Py_CHARMASK is documented as returning an int, it only does so on platforms with signed chars). --- diff --git a/Modules/binascii.c b/Modules/binascii.c index 1fe0663574e6..a9e190b359fe 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -918,7 +918,7 @@ This function is also available as \"hexlify()\"."; static int -to_int(char c) +to_int(int c) { if (isdigit(c)) return c - '0'; diff --git a/Python/compile.c b/Python/compile.c index 30ac41a6239a..706564780d52 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -305,7 +305,6 @@ com_error(struct compiling *c, PyObject *exc, char *msg) { size_t n = strlen(msg); PyObject *v, *tb, *tmp; - char *s; c->c_errors++; if (c->c_lineno <= 1) { /* Unknown line number or single interactive command */