Compilation error
Joakim Tjernlund
joakim.tjernlund at transmode.se
Sat Sep 8 06:29:46 PDT 2007
Buggy code. Gcc used to allow that, but newer gcc's
gives an error.
> -----Original Message-----
> From: uclibc-bounces at uclibc.org
> [mailto:uclibc-bounces at uclibc.org] On Behalf Of kannappan at tesbv.com
> Sent: den 8 september 2007 10:32
> To: uclibc at mail.uclibc.org
> Cc: kannappan at tesbv.com
> Subject: Compilation error
>
> i have the following piece of code which gives compilation
> error (like
> lvalue requried...) may be bug with the compiler
>
> uchar *s;
>
> *((ushort *)s)++ = val;
>
> if i change that to
> *(ushort *)s = val;
> s+=2;
>
> it works fine.
>
> I am using uclibc 0.9.29, gcc 4.1.2, binutils 2.17.
>
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
>
>
More information about the uClibc
mailing list