[FFmpeg-devel] [PATCH] Fix MSVC warnings about possible value truncation.

Peter Kasting pkasting at google.com
Wed Sep 3 02:16:10 CEST 2014


On Tue, Sep 2, 2014 at 5:10 PM, wm4 <nfxjfg at googlemail.com> wrote:

> > In the end, if we do decide to enable this warning, we will have to
> insert
> > some casts that are clearly safe, e.g.
> >
> >   if (x > INT_MAX)
> >     return;
> >   int y = (int)x;
> >
> > Indeed, if all of the nontrivial issues are fixed, those sorts of casts
> are
> > presumably the majority of the trivial changes we'd have to introduce.
>
> And here is exactly where we disagree.


I'm not sure what you mean by "disagree".  I would assume you mean you
don't think we should enable the warning if it would mean having to insert
any casts like this, but that's not actually disagreeing with me, that's
just a statement that the benefit isn't worth the costs.  Or do you mean
you actually disagree that deciding to enable the warning would require
inserting casts?  I'm confused.

PK


More information about the ffmpeg-devel mailing list