Re: [patch] avoiding casts of function pointers



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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]