diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-08-15 16:41:26 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-08-15 16:41:26 (GMT) |
commit | b59ab42487a442e31b0622643e47912166dfbd21 (patch) | |
tree | 6080b33595c8eb82d2d3219567d808344aba08d4 | |
parent | 185a29b08ffcb1370e469f25173f185ed0a60d39 (diff) | |
download | cpython-b59ab42487a442e31b0622643e47912166dfbd21.zip cpython-b59ab42487a442e31b0622643e47912166dfbd21.tar.gz cpython-b59ab42487a442e31b0622643e47912166dfbd21.tar.bz2 |
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).
-rw-r--r-- | Modules/binascii.c | 2 | ||||
-rw-r--r-- | Python/compile.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c index 1fe0663..a9e190b 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 30ac41a..7065647 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 */ |