diff options
author | Mark Harris <mark.hsj@gmail.com> | 2017-02-20 19:51:40 -0800 |
---|---|---|
committer | Mark Harris <mark.hsj@gmail.com> | 2017-02-26 19:10:45 -0800 |
commit | d6d70371e85ec83307f6df0e067d353daa8e6f33 (patch) | |
tree | 9e118ef0267e2e0734cc9db4c5bbd6016aa0e089 /src/mlp_data.c | |
parent | 8056706f48880bbf0bb7ee842f1067b85f613353 (diff) | |
download | opus-d6d70371e85ec83307f6df0e067d353daa8e6f33.tar.gz |
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
Diffstat (limited to 'src/mlp_data.c')
-rw-r--r-- | src/mlp_data.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mlp_data.c b/src/mlp_data.c index 6e15dc5a..a819880b 100644 --- a/src/mlp_data.c +++ b/src/mlp_data.c @@ -95,18 +95,18 @@ static const float weights[450] = { -0.222056f, -0.508859f, -0.473369f, 0.484958f, -2.28411f, 0.0139516f, /* output layer */ -3.90017, 1.71789, -1.43372, -2.70839, 1.77107, -5.48006, 1.44661, 2.01134, -1.88383, -3.64958, --1.26351, 0.779421, 2.11357, 3.10409, 1.68846, --4.46197, -1.61455, 3.59832, 2.43531, -1.26458, -0.417941, 1.47437, 2.16635, -1.909, -0.828869, -1.38805, -2.67975, -0.110044, 1.95596, 0.697931, --0.313226, -0.889315, 0.283236, 0.946102, }; +3.90017f, 1.71789f, -1.43372f, -2.70839f, 1.77107f, +5.48006f, 1.44661f, 2.01134f, -1.88383f, -3.64958f, +-1.26351f, 0.779421f, 2.11357f, 3.10409f, 1.68846f, +-4.46197f, -1.61455f, 3.59832f, 2.43531f, -1.26458f, +0.417941f, 1.47437f, 2.16635f, -1.909f, -0.828869f, +1.38805f, -2.67975f, -0.110044f, 1.95596f, 0.697931f, +-0.313226f, -0.889315f, 0.283236f, 0.946102f, }; static const int topo[3] = {25, 16, 2}; const MLP net = { - 3, - topo, - weights + 3, + topo, + weights }; |