diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-09-16 22:22:27 -0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2015-10-04 12:47:34 -0400 |
commit | 2cbaa078d18a8cf0ca28e5bb2ee9398a3e08b7b6 (patch) | |
tree | d3356bc59e507349d87b2689113abb78e99c2916 /libavcodec/vp8.c | |
parent | 26e8895b7395ed180dcb7e30465058c45050b5e2 (diff) | |
download | ffmpeg-2cbaa078d18a8cf0ca28e5bb2ee9398a3e08b7b6.tar.gz |
avcodec: use HAVE_THREADS header guards to silence -Wunused-function
When compiled with --disable-pthreads, e.g
http://fate.ffmpeg.org/report.cgi?time=20150917015044&slot=alpha-debian-qemu-gcc-4.7,
a bunch of -Wunused-functions are reported due to missing header guards
around threading related functions.
This patch should silence such warnings.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r-- | libavcodec/vp8.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index cb0c7cdc02..64037fc089 100644 --- a/libavcodec/vp8.c +++ b/libavcodec/vp8.c @@ -2769,6 +2769,7 @@ av_cold int ff_vp8_decode_init(AVCodecContext *avctx) } #if CONFIG_VP8_DECODER +#if HAVE_THREADS static av_cold int vp8_decode_init_thread_copy(AVCodecContext *avctx) { VP8Context *s = avctx->priv_data; @@ -2819,6 +2820,7 @@ static int vp8_decode_update_thread_context(AVCodecContext *dst, return 0; } +#endif /* HAVE_THREADS */ #endif /* CONFIG_VP8_DECODER */ #if CONFIG_VP7_DECODER |