[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?



On Wed, 26 May 2010 13:50:43 , m0n0 <ole@monochrom.net> wrote:
>
> Am Mittwoch, den 26.05.2010, 13:51 +0200 schrieb Peter Slegg
> <p.slegg@scubadivers.co.uk>:
> > I get lots of these warnings when compiling photorec with gcc 2.95
> > on the Milan.
>
> As far as I understand, this warning is not that bad. It just tells you:
> cast increases required alignment of target type ;)
>
> But I'm afraid about this: Is gcc smart enough to really increase the
> alignment???
> It would be nice if GCC would spit out something like:
>
> "cast increases required alignment of target type, but I'm not going to
> align it for you!"
>
> Or:
>
> "cast increases required alignment of target type, I'm going to align it
> as required!"
>


Yes, it's not very clear what it has done.

Peter