[FFmpeg-devel] [PATCH] avcodec/x86/hpeldsp_rnd_template: silence -Wunused-function on --disable-mmx

Michael Niedermayer michaelni at gmx.at
Sat Oct 3 14:39:14 CEST 2015


On Sat, Oct 03, 2015 at 07:18:16AM -0500, Ganesh Ajjanagadde wrote:
> On Tue, Sep 29, 2015 at 6:28 PM, Ganesh Ajjanagadde
> <gajjanagadde at gmail.com> wrote:
> > This silences some of the -Wunused-function warnings when compiled with --disable-mmx, e.g
> > http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.
> > Header guards are too brittle and ugly for this case.
> >
> > Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> > ---
> >  libavcodec/x86/hpeldsp_rnd_template.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/libavcodec/x86/hpeldsp_rnd_template.c b/libavcodec/x86/hpeldsp_rnd_template.c
> > index abe3bb1..e20d065 100644
> > --- a/libavcodec/x86/hpeldsp_rnd_template.c
> > +++ b/libavcodec/x86/hpeldsp_rnd_template.c
> > @@ -106,7 +106,7 @@ av_unused static void DEF(put, pixels16_x2)(uint8_t *block, const uint8_t *pixel
> >          :REG_a, "memory");
> >  }
> >
> > -static void DEF(put, pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
> > +av_unused static void DEF(put, pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
> >  {
> >      MOVQ_BFE(mm6);
> >      __asm__ volatile(
> > @@ -162,7 +162,7 @@ av_unused static void DEF(avg, pixels16_x2)(uint8_t *block, const uint8_t *pixel
> >              :"memory");
> >  }
> >
> > -static void DEF(avg, pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
> > +av_unused static void DEF(avg, pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
> >  {
> >      MOVQ_BFE(mm6);
> >      __asm__ volatile(
> > --
> > 2.5.3
> >
> 
> ping

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

You can kill me, but you cannot change the truth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151003/78d911b3/attachment.sig>


More information about the ffmpeg-devel mailing list