this line returns lvalue required as increment operand
error message with gcc-4.7
hwrcolor c;
u8 *dest;
*(((unsigned char *)dest)++) = c;
I changed it
hwrcolor c;
u8 *dest;
*((unsigned char *)dest) = c;
dest += sizeof(c);
and
u32 * u32Dest;
hwrcolor c;
u8 *dest;
u32Dest = ((u32 *)dest);
*u32Dest = *u32Dest + 1;
*u32Dest = c;
and
u32 * u32Dest;
hwrcolor c;
u8 *dest;
u32Dest = ((u32 *)dest);
*(u32Dest++) = c;
after gcc compiles but application not work properly. Is conversion true?