Skip to content

Commit

Permalink
avcodec/x86/rnd_template: silence -Wunused-function on --disable-mmx
Browse files Browse the repository at this point in the history
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@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
  • Loading branch information
Ganesh Ajjanagadde authored and michaelni committed Sep 29, 2015
1 parent 01dd7e0 commit 308e748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavcodec/x86/rnd_template.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "inline_asm.h"

// put_pixels
STATIC void DEF(put, pixels8_xy2)(uint8_t *block, const uint8_t *pixels,
av_unused STATIC void DEF(put, pixels8_xy2)(uint8_t *block, const uint8_t *pixels,
ptrdiff_t line_size, int h)
{
MOVQ_ZERO(mm7);
Expand Down Expand Up @@ -99,7 +99,7 @@ STATIC void DEF(put, pixels8_xy2)(uint8_t *block, const uint8_t *pixels,

// avg_pixels
// this routine is 'slightly' suboptimal but mostly unused
STATIC void DEF(avg, pixels8_xy2)(uint8_t *block, const uint8_t *pixels,
av_unused STATIC void DEF(avg, pixels8_xy2)(uint8_t *block, const uint8_t *pixels,
ptrdiff_t line_size, int h)
{
MOVQ_ZERO(mm7);
Expand Down

0 comments on commit 308e748

Please sign in to comment.