mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g
-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without. There's still a batch of non-prototype warnings in Xlib.h that I don't know how to fix.
This commit is contained in:
parent
822b87f276
commit
7937d939b1
5 changed files with 4 additions and 26 deletions
|
@ -182,6 +182,7 @@ get_long(PyObject *v, long *p)
|
|||
|
||||
/* Same, but handling unsigned long */
|
||||
|
||||
#ifndef PY_STRUCT_OVERFLOW_MASKING
|
||||
static int
|
||||
get_ulong(PyObject *v, unsigned long *p)
|
||||
{
|
||||
|
@ -201,6 +202,7 @@ get_ulong(PyObject *v, unsigned long *p)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#endif /* PY_STRUCT_OVERFLOW_MASKING */
|
||||
|
||||
#ifdef HAVE_LONG_LONG
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue