use of cast expressions as lvalues is deprecated
Massimiliano Cialdi
cialdi@gmail.com
Tue Feb 15 00:53:00 GMT 2005
I use h8300-elf gcc 3.4.3
If I write the following:
void *qmemcpy(void *dst, register const void *src, register long len)
{
register char *d;
for (d = dst; --len >= 0; *d++ = *((char*)src)++) ; // warning here
return dst;
}
I obtain:
qmemcpy.c: In function `qmemcpy':
qmemcpy.c(7) : warning: use of cast expressions as lvalues is deprecated
There exist a way to avoid the use of another variable to resolve this
warning?
thanks
--
Massimiliano Cialdi
cialdi@gmail.com
m.cialdi@oksys.it
More information about the Gcc-help
mailing list