Re: [cc65] function ptr error with head

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2009-09-01 14:26:18
Johan Kotlinski wrote:
> Trying to compile this:
> 
> void bar() {}
> 
> main()
> {
>     typedef void (*FOO)(void);
>     FOO foo;
>     foo = bar;
> }
> 
> ...gives:
> 
> test.c(7): Error: Incompatible pointer types

Isn't that correct as `void bar()` != `void bar(void)`?

Ciao,
	Marc 'BlackJack' Rintsch


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Sep 1 14:26:29 2009

This archive was generated by hypermail 2.1.8 : 2009-09-01 14:26:32 CEST