]> granicus.if.org Git - python/commitdiff
Fix new compiler warnings. Unused var in compile.c. Argsize mismatches
authorTim Peters <tim.peters@gmail.com>
Tue, 15 Aug 2000 16:41:26 +0000 (16:41 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 15 Aug 2000 16:41:26 +0000 (16:41 +0000)
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).

Modules/binascii.c
Python/compile.c

index 1fe0663574e62fd6c056bf1e4392f4af9fb295d4..a9e190b359fe092e42e694ebe87913f125b242f0 100644 (file)
@@ -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';
index 30ac41a6239adb6309c4b6fabeae4e6ed103e901..706564780d522a97247fe40f1c3762cc6325ad5c 100644 (file)
@@ -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 */