# New Ticket Created by Jarkko Hietaniemi # Please include the string: [perl #15805] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=15805 > Please find attached some very minor tweaks to keep the Tru64 compiler content and happy about missing return statements in non-void functions. There were some further grumblings that I didn't attempt to fix since I don't know enough Parrotlore: are there, for example, some macros to do generic integer-to-pointer and back casts? In the Old Lore these were known as INT2PTR() and PTR2[IU]V(). Or maybe the warnings unearthed some real problems? The remaining warnings are: cc: Warning: coroutine.pmc, line 329: In the initializer for co, the referenced type of the pointer value "(struct Parrot_Sub ...)pmc->data" is "struct Parrot_Sub", which is not compatible with "struct Parrot_Coroutine". (ptrmismatch) struct Parrot_Coroutine* co = (struct Parrot_Sub*)pmc->data; -----------------------------------^ cc: Warning: coroutine.pmc, line 333: In this statement, "co->init" of type "pointer to long", is being converted to "long". (cvtdiftypes) return co->init; --------------^ cc: Warning: coroutine.pmc, line 336: In this statement, "co->resume" of type "pointer to long", is being converted to "long". (cvtdiftypes) return co->resume; ------------^ cc: Warning: sub.pmc, line 331: In this statement, "((struct Parrot_Sub ...)pmc->data)->init" of type "pointer to long", is being converted to "long". (cvtdiftypes) return ((struct Parrot_Sub*)pmc->data)->init; ------------^ -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'dead'. -- Jack Cohen -- attachment 1 ------------------------------------------------------ url: http://rt.perl.org/rt2/attach/31943/26605/60fb43/tru64warn.patchThread Previous