Ethereal-dev: Re: [Ethereal-dev] Add -Wbad-function-cast to extra gcc flags

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Olivier Biot" <ethereal@xxxxxxxxxx>
Date: Sun, 11 Jan 2004 16:32:48 +0100
I suspect it's bound to the GTK macros. I'm not familiar with GTK, but
maybe the macros contain casts from void * to pointer-to-function in
an odd manner.

Regards,

Olviier

----- Original Message ----- 
From: "Joerg Mayer"


On Sat, Jan 10, 2004 at 07:00:06PM +0100, Olivier Biot wrote:
> I checked in an extra GCC check in the extra
> checks: -Wbad-function-cast.

main.c:475: warning: cast does not match function type
So what does this warning mean?

Thanks
    Jörg