[patch] avoiding casts of function pointers

Pavel Tsekov ptsekov at gmx.net
Wed Jun 8 09:05:44 UTC 2005


Hello,

On Tue, 7 Jun 2005, Oswald Buddenhagen wrote:

> On Tue, Jun 07, 2005 at 05:12:59PM +0200, Roland Illig wrote:
> > This patch fixes the gcc warning about incompatible pointer types in
> > widget.c. I is much more complicated than Jindrich's patch, but in
> > return it is fully ISO C compliant. :)
> >
> what an effort ...
> the simplest solution is making the functions that don't need a pointer
> just have a dummy parameter. that's typical for callbacks.

Good point. Let's not fix warnings blindly.



More information about the mc-devel mailing list