[FFmpeg-devel] [PATCH] fix 'warning: dereferencing type-punned pointer will break strict-aliasing rules' warning

Michael Niedermayer michaelni
Wed Mar 5 20:00:24 CET 2008

On Wed, Mar 05, 2008 at 11:26:10AM -0500, Rich Felker wrote:
> On Wed, Mar 05, 2008 at 03:37:55PM +0100, Michael Niedermayer wrote:
> > * find out which gcc versions are affected and start a vote about dropping
> >   support for them, though i will vote against droping support for 2.95
> Is the alignment essential anyway? 

no, but there would be a speed loss.

> gcc 2.95.3 does NOT 8-byte-align
> int64_t anyway. It treats 4 as the maximal alignment for all types on
> x86.

It ended up with aligned arrays in practice, maybe it did not work
reliably or just by luck but it did work.

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080305/c8b0555f/attachment.pgp>

More information about the ffmpeg-devel mailing list