avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Deprecated warning on 3.4.1


From: Dave Hylands
Subject: RE: [avr-gcc-list] Deprecated warning on 3.4.1
Date: Wed, 4 Aug 2004 10:24:26 -0700

The ++ operator makes ((unsigned char *) src) an lvalue.

Think about ++ as being equivalent to += 1 and it will probably make
more sense.

Hmm. I wonder what the "new" way of doing things is? (since this appears
to be deprectaed).

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/ 

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On Behalf Of Harald Kipp
> Sent: Wednesday, August 04, 2004 10:01 AM
> To: address@hidden
> Subject: [avr-gcc-list] Deprecated warning on 3.4.1
> 
> 
> At
> 
>    *dst++ = *((unsigned char *) src)++;
> 
> the compiler 3.4.1 (WinAVR) mumbles
> 
>    warning: use of cast expressions as lvalues is deprecated
> 
> But there is no casted lvalue. Looks like he doesn't like
> 
>    ((cast_t *)var)++
> 
> Am I doing something nasty here?
> 
> Thanks,
> 
> Harald
> 
> 
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden 
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]