Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2022-07-02 21:34:46 +0300
committerMark Harris <mark.hsj@gmail.com>2022-07-06 01:16:03 +0300
commitef10bf56c34e0da31c4ec5572f4e6f23e5b66306 (patch)
treeb9f6e2b4fbc534f1ed43e7ca3d82eb1f351f8ca4
parent98a6042bb67bbe0ddd9d4291de4292c6882bb095 (diff)
Silence GCC 11+ -Wmaybe-uninitialized warnings
Reviewed by Timothy B. Terriberry.
-rw-r--r--silk/float/wrappers_FLP.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/silk/float/wrappers_FLP.c b/silk/float/wrappers_FLP.c
index ad90b874..c0c183e3 100644
--- a/silk/float/wrappers_FLP.c
+++ b/silk/float/wrappers_FLP.c
@@ -190,12 +190,14 @@ void silk_quant_LTP_gains_FLP(
opus_int32 XX_Q17[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ];
opus_int32 xX_Q17[ MAX_NB_SUBFR * LTP_ORDER ];
- for( i = 0; i < nb_subfr * LTP_ORDER * LTP_ORDER; i++ ) {
+ i = 0;
+ do {
XX_Q17[ i ] = (opus_int32)silk_float2int( XX[ i ] * 131072.0f );
- }
- for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) {
+ } while ( ++i < nb_subfr * LTP_ORDER * LTP_ORDER );
+ i = 0;
+ do {
xX_Q17[ i ] = (opus_int32)silk_float2int( xX[ i ] * 131072.0f );
- }
+ } while ( ++i < nb_subfr * LTP_ORDER );
silk_quant_LTP_gains( B_Q14, cbk_index, periodicity_index, sum_log_gain_Q7, &pred_gain_dB_Q7, XX_Q17, xX_Q17, subfr_len, nb_subfr, arch );