From: Neal Norwitz Date: Wed, 20 Mar 2002 21:32:07 +0000 (+0000) Subject: Remove compiler warnings on Solaris 8. X-Git-Tag: v2.3c1~6427 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3afb2d2bba9d492c1f2c889954bc0d32d93955ab;p=thirdparty%2FPython%2Fcpython.git Remove compiler warnings on Solaris 8. Can go into 2.2.x, but not necessary. --- diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c index 97037ac4ed81..2eb7bdb25371 100644 --- a/Modules/_hotshot.c +++ b/Modules/_hotshot.c @@ -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; diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 3232e57db324..3153693dd277 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -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; diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 54d444f188bd..3c69fb30d783 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -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++; diff --git a/pyconfig.h.in b/pyconfig.h.in index 0acd1f5b6b85..9d9386f3054a 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -106,7 +106,9 @@ #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