Re: [cc65] "Incompatible pointer types" bug

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2007-03-18 20:19:12
On Sat, Mar 03, 2007 at 09:30:38PM +0100, Andreas Koch wrote:
> test.c(20): Error: Incompatible pointer types
> for   APtr=&(Bs[7].Data[1]);

I've fixed this issue, but the current solution has one drawback:

        int foo[3];
        int* bar;
        ...
        bar = &foo;

is now flagged as an error. The code *is* wrong (because the left side is
pointer to int, and the right side is pointer to array of int), but there may
be old sources around with constructs like this. gcc spits out a warning (not
an error) probably because of that reason. Please let me know if the change
causes problems.

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 Sun Mar 18 20:19:27 2007

This archive was generated by hypermail 2.1.8 : 2007-03-18 20:19:30 CET