[Python-Dev] PY_FORMAT_SIZE_T warnings on OS X
Brett Cannon
brett at python.org
Sun Apr 2 01:43:10 CEST 2006
I think these are all Tim's fault =) :
Objects/object.c: In function '_Py_NegativeRefcount':
Objects/object.c:144: warning: format '%d' expects type 'int', but
argument 7 has type 'Py_ssize_t'
Objects/stringobject.c: In function 'PyString_FromFormatV':
Objects/stringobject.c:278: warning: format '%u' expects type
'unsigned int', but argument 3 has type 'size_t'
Python/pythonrun.c: In function 'Py_Finalize':
Python/pythonrun.c:393: warning: format '%d' expects type 'int', but
argument 3 has type 'Py_ssize_t'
Python/pythonrun.c: In function 'PyRun_InteractiveLoopFlags':
Python/pythonrun.c:683: warning: format '%d' expects type 'int', but
argument 3 has type 'Py_ssize_t'
Modules/gcmodule.c: In function 'collect':
Modules/gcmodule.c:746: warning: format '%d' expects type 'int', but
argument 2 has type 'Py_ssize_t'
Modules/gcmodule.c:841: warning: format '%d' expects type 'int', but
argument 2 has type 'Py_ssize_t'
Modules/gcmodule.c:841: warning: format '%d' expects type 'int', but
argument 3 has type 'Py_ssize_t'
What's odd about them is that that the use of PY_FORMAT_SIZE_T seems
to be correct, so I don't know what the problem is. Unfortunately
``gcc -E Include/pyport.h`` is no help since PY_FORMAT_SIZE_T is not
showing up defined (possibly because gcc says it can't find
pyconfig.h).
-Brett
More information about the Python-Dev
mailing list