From efcdeb9bb286882743aeeb8661c088187e315262 Mon Sep 17 00:00:00 2001 From: Mark Harris <mark.hsj@gmail.com> Date: Thu, 22 Dec 2016 11:11:32 -0800 Subject: [PATCH] Fix some compiler warnings --- celt/mips/vq_mipsr1.h | 3 --- silk/mips/sigproc_fix_mipsr1.h | 5 ----- src/opus_encoder.c | 4 ++++ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/celt/mips/vq_mipsr1.h b/celt/mips/vq_mipsr1.h index 54cef8613..fd18eab7a 100644 --- a/celt/mips/vq_mipsr1.h +++ b/celt/mips/vq_mipsr1.h @@ -36,9 +36,6 @@ #include "mathops.h" #include "arch.h" -static unsigned extract_collapse_mask(int *iy, int N, int B); -static void normalise_residual(int * OPUS_RESTRICT iy, celt_norm * OPUS_RESTRICT X, int N, opus_val32 Ryy, opus_val16 gain); -static void exp_rotation(celt_norm *X, int len, int dir, int stride, int K, int spread); static void renormalise_vector_mips(celt_norm *X, int N, opus_val16 gain, int arch); #define OVERRIDE_vq_exp_rotation1 diff --git a/silk/mips/sigproc_fix_mipsr1.h b/silk/mips/sigproc_fix_mipsr1.h index 3b0a69536..51520c0a6 100644 --- a/silk/mips/sigproc_fix_mipsr1.h +++ b/silk/mips/sigproc_fix_mipsr1.h @@ -28,11 +28,6 @@ POSSIBILITY OF SUCH DAMAGE. #ifndef SILK_SIGPROC_FIX_MIPSR1_H #define SILK_SIGPROC_FIX_MIPSR1_H -#ifdef __cplusplus -extern "C" -{ -#endif - #undef silk_SAT16 static inline short int silk_SAT16(int a) { diff --git a/src/opus_encoder.c b/src/opus_encoder.c index 665d208de..11558e875 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -1136,6 +1136,10 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_ #else (void)analysis_pcm; (void)analysis_size; + (void)c1; + (void)c2; + (void)analysis_channels; + (void)downmix; #endif #ifndef DISABLE_FLOAT_API -- GitLab