]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove compiler warnings on Solaris 8.
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 20 Mar 2002 21:32:07 +0000 (21:32 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 20 Mar 2002 21:32:07 +0000 (21:32 +0000)
Can go into 2.2.x, but not necessary.

Modules/_hotshot.c
Modules/pyexpat.c
Modules/stropmodule.c
pyconfig.h.in

index 97037ac4ed81732238c133379659f29ba7fdd976..2eb7bdb25371241524a884a2896f15f83cde8612 100644 (file)
@@ -1453,7 +1453,7 @@ get_version_string(void)
     char *buffer;
     int i = 0;
 
-    while (*rev && !isdigit(*rev))
+    while (*rev && !isdigit((int)*rev))
         ++rev;
     while (rev[i] != ' ' && rev[i] != '\0')
         ++i;
index 3232e57db324dd5428a919f59f5e45e6652fa81b..3153693dd277c0f44c14873afaee8e6dd535b18d 100644 (file)
@@ -1366,7 +1366,7 @@ get_version_string(void)
     char *rev = rcsid;
     int i = 0;
 
-    while (!isdigit(*rev))
+    while (!isdigit((int)*rev))
         ++rev;
     while (rev[i] != ' ' && rev[i] != '\0')
         ++i;
index 54d444f188bde760744a50b457ab4dc17eaccbef..3c69fb30d7831b28739a6b1b2c5a2f4b80174937 100644 (file)
@@ -766,7 +766,7 @@ strop_atoi(PyObject *self, PyObject *args)
                x = (long) PyOS_strtoul(s, &end, base);
        else
                x = PyOS_strtol(s, &end, base);
-       if (end == s || !isalnum(end[-1]))
+       if (end == s || !isalnum((int)end[-1]))
                goto bad;
        while (*end && isspace(Py_CHARMASK(*end)))
                end++;
index 0acd1f5b6b85420d25bce15fb140fa65097d5a35..9d9386f3054acff0d893c3701aa448882679b846 100644 (file)
 #undef __EXTENSIONS__
 
 /* This must be set to 64 on some systems to enable large file support */
+#ifndef _FILE_OFFSET_BITS
 #undef _FILE_OFFSET_BITS
+#endif
 
 /* Define if getpgrp() must be called as getpgrp(0). */
 #undef GETPGRP_HAVE_ARG