[FFmpeg-devel] [PATCH] Silence useless icc warnings

Michael Niedermayer michaelni
Sun May 11 16:56:37 CEST 2008


On Sun, May 11, 2008 at 01:30:37PM +0000, Carl Eugen Hoyos wrote:
> Hi!
> 
> M?ns Rullg?rd <mans <at> mansr.com> writes:
> 
> > > The remaining possible useless warning when compiling with icc is now:
> > >
> > > libavcodec/gif.c(343): warning #188: enumerated type mixed with another type
> > >       .pix_fmts= (enum PixelFormat[]){PIX_FMT_PAL8, -1},
> > >                                                     ^
> > >
> > > Does anybody wants them to be fixes (there are a lot of them) or should I
> > > silence this warning as well?
> > 
> > These can be fixed by replacing the -1 with PIX_FMT_NONE, which
> > incidentally has the value -1.
> 
> Even I knew that;-)
> 
> The question is: Do you want all these occurences of -1 (>100) to be fixed
> (there are a few where this might be more difficult), or should the warning be
> silenced?

Iam slightly in favor of seeing the -1 replaced by PIX_FMT_NONE

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- 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/20080511/f4f97d05/attachment.pgp>



More information about the ffmpeg-devel mailing list