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

Zuxy Meng zuxy.meng
Wed Mar 5 13:08:54 CET 2008


Hi,

2008/3/5, Michael Niedermayer <michaelni at gmx.at>:
> On Wed, Mar 05, 2008 at 12:51:04PM +0100, Michael Niedermayer wrote:
> > On Wed, Mar 05, 2008 at 09:47:26PM +1100, mark cox wrote:
> > > Here is a patch to fix the 'warning: dereferencing type-punned pointer will
> > > break strict-aliasing rules' warning.
> >
> > patch rejected
>
> Just to clarify even though it should be clear to every C programmer.
> The warnings point to bugs, the bugs are not fixed by this patch.

Someone willing to tell me the history about the "declared as uint64_t
and cast to short" thing? Looks to me as a workaround for some
compiler bug.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6




More information about the ffmpeg-devel mailing list