Buggy code. Gcc used to allow that, but newer gcc's gives an error. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > Sent: den 8 september 2007 10:32 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > 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 > [email protected] > http://busybox.net/cgi-bin/mailman/listinfo/uclibc > >
_______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
