[kaffe] Weird warnings on powerpc-macosx

Timothy Stack stack at cs.utah.edu
Thu Oct 30 12:59:01 PST 2003

> Hi Tim,


> while I'm taking the chance to root out the warnings on macosx, I 
> stumbled accross a weird one in kaffe.def. Namely all code of the form
> (METHOD_NATIVECODE(method_method())== soft_null_call) )
> raises a gcc warning sayng that the comparison of distinct pointer types 
> lacks a cast.
> I'm at loss what the involved pointer types are, what the necessary cast 
> would be, or what is the purpose of the code ;) Could you shed some 
> light on this tiny issue?

As you already know, they're function pointer types.  And, the purpose of 
the test is to avoid generating code to call a method that would just 
return immediately (which mostly happens with empty constructors).

> cheers,
> dalibor topic


More information about the kaffe mailing list