Re: [cc65] function ptr error with head

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-09-01 14:40:22
Hi!
On Tue, Sep 01, 2009 at 02:11:24PM +0200, Johan Kotlinski wrote:
> void bar() {}
>
> main()
> {
>     typedef void (*FOO)(void);
>     FOO foo;
>     foo = bar;
> }
[...]
> test.c(7): Error: Incompatible pointer types

No problem here:

uz@trixie:~$ cc65 -t c64 test.c
test.c(4): Warning: Implicit `int' return type is an obsolete feature
test.c(8): Warning: Control reaches end of non-void function

Did you do anything special? Using command line switches or whatever?

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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:42:12 2009

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