From d6d70371e85ec83307f6df0e067d353daa8e6f33 Mon Sep 17 00:00:00 2001 From: Mark Harris Date: Mon, 20 Feb 2017 19:51:40 -0800 Subject: Fix compiler warnings - celt/modes.c:430:14: warning: cast from 'const unsigned char *' to 'opus_int16 *' increases required alignment from 1 to 2 [-Wcast-align] - 'C[0][1]' may be used uninitialized [-Wmaybe-uninitialized] - Unused variable/parameter - Value stored is never read - MSVC warnings about "possible loss of data" due to type conversions - MSVC warning C4146: unary minus operator applied to unsigned type - silk/NLSF_del_dec_quant.c:137:20: warning: array subscript is above array bounds [-Warray-bounds] (gcc -O3 false positive) - src/mlp_train.h:39:20: warning: function declaration isn't a prototype [-Wstrict-prototypes] - Remove SMALL_FOOTPRINT code from SSE 4.1 FIR implementation, matching the C implementation. The clang -Wcast-align warnings with SSE intrinsics are a known clang issue: https://llvm.org/bugs/show_bug.cgi?id=20670 --- celt/x86/celt_lpc_sse.c | 12 ------------ celt/x86/vq_sse2.c | 1 - 2 files changed, 13 deletions(-) (limited to 'celt/x86') diff --git a/celt/x86/celt_lpc_sse.c b/celt/x86/celt_lpc_sse.c index 12a9b0e5..54785688 100644 --- a/celt/x86/celt_lpc_sse.c +++ b/celt/x86/celt_lpc_sse.c @@ -57,17 +57,6 @@ void celt_fir_sse4_1(const opus_val16 *x, ALLOC(rnum, ord, opus_val16); for(i=0;i> 1; vecNoA = _mm_set_epi32(noA, noA, noA, noA); @@ -94,7 +83,6 @@ void celt_fir_sse4_1(const opus_val16 *x, y[i] = SATURATE16(ADD32(EXTEND32(x[i]), PSHR32(sum, SIG_SHIFT))); } -#endif RESTORE_STACK; } diff --git a/celt/x86/vq_sse2.c b/celt/x86/vq_sse2.c index c82d7e24..6a317703 100644 --- a/celt/x86/vq_sse2.c +++ b/celt/x86/vq_sse2.c @@ -155,7 +155,6 @@ opus_val16 op_pvq_search_sse2(celt_norm *_X, int *iy, int K, int N, int arch) __m128 max, max2; __m128i count; __m128i pos; - best_id = 0; /* The squared magnitude term gets added anyway, so we might as well add it outside the loop */ yy = ADD16(yy, 1); -- cgit v1.2.3