[Ffmpeg-devel] Please take care about strict-aliasing warnings.

Luca Barbato lu_zero
Tue Mar 28 01:00:11 CEST 2006


If your code triggers a warning like this:

tscc.c:151: warning: dereferencing type-punned pointer might break 
strict-aliasing rules

Please either fix it using unions or append -fno-strict-aliasing.

arches in which there are effective optimization done assuming the 
strict aliasing rules will subtly break if you just ignore it.

currently the codec regression test is broken with the default cflags at 
least on ppc, issuing a global -fno-strict-aliasing fixes the issue.

I'm trying to track the single files at least.

Please note that -Wall / -Wstrict-aliasing may not catch every issue.

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list