[FFmpeg-devel] [PATCH 2/3] Remove unused variable, avoiding compiler warning.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun May 29 21:00:34 CEST 2011


On Sun, May 29, 2011 at 03:29:04PM +0200, Stefano Sabatini wrote:
> On date Sunday 2011-05-29 15:26:08 +0200, Reimar Döffinger encoded:
> > ---
> >  libswscale/ppc/swscale_template.c |    2 --
> >  1 files changed, 0 insertions(+), 2 deletions(-)
> > 
> > diff --git a/libswscale/ppc/swscale_template.c b/libswscale/ppc/swscale_template.c
> > index 20a81e5..27351ad 100644
> > --- a/libswscale/ppc/swscale_template.c
> > +++ b/libswscale/ppc/swscale_template.c
> > @@ -66,8 +66,6 @@ static inline void RENAME(yuv2packedX)(SwsContext *c, const int16_t *lumFilter,
> >  
> >  static void RENAME(sws_init_swScale)(SwsContext *c)
> >  {
> > -    enum PixelFormat srcFormat = c->srcFormat;
> > -
> >      c->yuv2yuvX     = RENAME(yuv2yuvX    );
> >      c->yuv2packedX  = RENAME(yuv2packedX );
> >  }
> 
> This looks fine if the variable is really not used (and no need to send
> patches for obviously correct changes IMO).

Was mostly a case of git making it too easy to send patches.
Well, actually I was also wanting to avoid it conflicting with other
people's work.
Anyway, all applied.


More information about the ffmpeg-devel mailing list