Kaydet (Commit) 3afb2d2b authored tarafından Neal Norwitz's avatar Neal Norwitz

Remove compiler warnings on Solaris 8.

Can go into 2.2.x, but not necessary.
üst bcc2c125
...@@ -1453,7 +1453,7 @@ get_version_string(void) ...@@ -1453,7 +1453,7 @@ get_version_string(void)
char *buffer; char *buffer;
int i = 0; int i = 0;
while (*rev && !isdigit(*rev)) while (*rev && !isdigit((int)*rev))
++rev; ++rev;
while (rev[i] != ' ' && rev[i] != '\0') while (rev[i] != ' ' && rev[i] != '\0')
++i; ++i;
......
...@@ -1366,7 +1366,7 @@ get_version_string(void) ...@@ -1366,7 +1366,7 @@ get_version_string(void)
char *rev = rcsid; char *rev = rcsid;
int i = 0; int i = 0;
while (!isdigit(*rev)) while (!isdigit((int)*rev))
++rev; ++rev;
while (rev[i] != ' ' && rev[i] != '\0') while (rev[i] != ' ' && rev[i] != '\0')
++i; ++i;
......
...@@ -766,7 +766,7 @@ strop_atoi(PyObject *self, PyObject *args) ...@@ -766,7 +766,7 @@ strop_atoi(PyObject *self, PyObject *args)
x = (long) PyOS_strtoul(s, &end, base); x = (long) PyOS_strtoul(s, &end, base);
else else
x = PyOS_strtol(s, &end, base); x = PyOS_strtol(s, &end, base);
if (end == s || !isalnum(end[-1])) if (end == s || !isalnum((int)end[-1]))
goto bad; goto bad;
while (*end && isspace(Py_CHARMASK(*end))) while (*end && isspace(Py_CHARMASK(*end)))
end++; end++;
......
...@@ -106,7 +106,9 @@ ...@@ -106,7 +106,9 @@
#undef __EXTENSIONS__ #undef __EXTENSIONS__
/* This must be set to 64 on some systems to enable large file support */ /* This must be set to 64 on some systems to enable large file support */
#ifndef _FILE_OFFSET_BITS
#undef _FILE_OFFSET_BITS #undef _FILE_OFFSET_BITS
#endif
/* Define if getpgrp() must be called as getpgrp(0). */ /* Define if getpgrp() must be called as getpgrp(0). */
#undef GETPGRP_HAVE_ARG #undef GETPGRP_HAVE_ARG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment