[Cython] Function signature does not match previous declaration

Johannes Wienke languitar at semipol.de
Tue Jul 8 18:49:53 CEST 2008


Hi,

I've got one header file in my project, that raises a lot of "Function
signature does not match previous declaration" warnings but I don't know
why, especially because everything works. One warning e. g. is this one:

warning: include/icewing/gui/Gimage.pxi:87:11: Function signature does
not match previous declaration

Line 87 in that file is:
iwImage* iw_img_new_alloc(int width, int height, int planes, iwType type)

iwImage and iwType are defined like this:

ctypedef struct iwImage:
    guchar **data
    int planes
    iwType type
    int width, height
    int rowstride
    iwColtab ctab
    void *reserved

ctypedef enum iwType:
    IW_8U
    IW_16U
    IW_32S
    IW_FLOAT
    IW_DOUBLE

The original definitions in the header file look like this:

typedef struct iwImage {
	guchar **data;
	int planes;
	iwType type;
	int width, height;
	int rowstride;
	iwColtab ctab;
	void *reserved;
} iwImage;

typedef enum {
	IW_8U,
	IW_16U,
	IW_32S,
	IW_FLOAT,
	IW_DOUBLE
} iwType;

iwImage* iw_img_new_alloc (int width, int height, int planes, iwType type);

Has anyone got an idea why cython generates these warnings?

Thanks for the help!

Johannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080708/75cc49af/attachment.pgp 


More information about the Cython-dev mailing list