[Python-Dev] warnings in libffi

Brett Cannon brett at python.org
Thu Mar 30 01:38:01 CEST 2006


gcc 4.0.1 on OS X is spitting out some warnings about libffi:

build/temp.darwin-8.5.0-Power_Macintosh-2.5/libffi/include/ffi.h:191:
warning: function declaration isn't a prototype
build/temp.darwin-8.5.0-Power_Macintosh-2.5/libffi/include/ffi.h:204:
warning: function declaration isn't a prototype
build/temp.darwin-8.5.0-Power_Macintosh-2.5/libffi/include/ffi.h:273:
warning: function declaration isn't a prototype
/Users/drifty/Code/Trees/svn/python/trunk/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c:383:
warning: function declaration isn't a prototype
/Users/drifty/Code/Trees/svn/python/trunk/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c:384:
warning: function declaration isn't a prototype
/Users/drifty/Code/Trees/svn/python/trunk/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c:388:
warning: function declaration isn't a prototype
/Users/drifty/Code/Trees/svn/python/trunk/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c:389:
warning: function declaration isn't a prototype
/Users/drifty/Code/Trees/svn/python/trunk/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c:394:
warning: function declaration isn't a prototype

All of them are for function parameters of function pointers (``void
(*fn)(void)`` and such) when used in both function prototypes and
function declarations.  Do we fix these ourselves, or do we report
them to the libffi maintainers (or are whom)?

-Brett


More information about the Python-Dev mailing list