[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] How serious is GCC "cast increases requiered alignment of target type" warning?
Am Di, 25.05.2010, 23:40 schrieb Vincent Rivière:
> Ole Loots wrote:
>> Hello, I'm getting the warning: cast increases requiered alignment of
>> target type
>
> I've never seen that warning, please post the source line.
>
During the compile stage this warning occured sometimes... this is one of
the lines:
static inline uint32_t *
get_xy_loc(nsfb_t *nsfb, int x, int y)
{
return (uint32_t *)(nsfb->ptr + (y * nsfb->linelen) + (x << 2));
}
the line with "return ( ..." throws the warning.
greets