Path: utzoo!attcan!uunet!wuarchive!usc!ucsd!ucbvax!BRL.MIL!moss From: moss@BRL.MIL ("Gary S. Moss", VLD/VMB) Newsgroups: comp.sys.sgi Subject: Re: comparing pointers to void functions Message-ID: <9005301007.aa09801@VMB.BRL.MIL> Date: 30 May 90 14:07:06 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16 < if (thing->formstart == bgnpolygon) < The compiler says "operands of == have incompatible types". Chris, I ran into this exact problem yesterday. It looks like a compiler bug; I tried just about everything comparing a pointer to a function of type void to the function name with the same result. Casting each side to a generic pointer type shuts up the compiler, but this is a non-portable workaround since there is no guarantee in ANSI C that a function pointer will fit in a generic *object* pointer type: #ifdef mips if( (void *) thing->formstart == (void *) bgnpolygon ) #endif Anyone at SGI want to wedge a fix in to the next release?