[cc65] function ptr error with head

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2009-09-01 14:11:24
Trying to compile this:

void bar() {}

main()
{
    typedef void (*FOO)(void);
    FOO foo;
    foo = bar;
}

...gives:

test.c(7): Error: Incompatible pointer types

Johan
----------------------------------------------------------------------
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:11:51 2009

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