Commit 0015f60e authored by Jonas Svedberg's avatar Jonas Svedberg
Browse files

corrected gcc warnings in LSF_tools.c

parent d59bbad9
Loading
Loading
Loading
Loading
+13 −16
Original line number Diff line number Diff line
@@ -2185,13 +2185,13 @@ void msvq_dec(
    DCTTYPE dcttype = IDCT_T2_XX_24;
    int16_t tcx_ind = -1;
    int16_t n_segm = FDCNG_VQ_DCT_NSEGM;
    int16_t *cum_entries_per_segment = (int16_t *) cdk1_ivas_cum_entries_per_segment;
    Word8 *const *W8Qx_dct_sections = (Word8 *const *)cdk_37bits_ivas_stage1_W8Qx_dct_sections;
    int16_t *cols_per_segment = (int16_t *)cdk1_ivas_cols_per_segment;
    int16_t *const *col_syn_shift = (int16_t *const *)stage1_dct_col_syn_shift;
    const  int16_t *cum_entries_per_segment = (const int16_t *) cdk1_ivas_cum_entries_per_segment;
    const Word8 *const *W8Qx_dct_sections = (const Word8 *const *)cdk_37bits_ivas_stage1_W8Qx_dct_sections;
    const int16_t *cols_per_segment = (const int16_t *) cdk1_ivas_cols_per_segment;
    const int16_t *const *col_syn_shift = (const int16_t *const *) stage1_dct_col_syn_shift;
    int16_t max_trunc = FDCNG_VQ_DCT_MAXTRUNC;
    float *dct_scaleF = (float *)fdcng_dct_scaleF;
    float *midQ_truncQ = (float *)cdk1r_tr_midQ_truncQ;
    const float *dct_scaleF = (const float *) fdcng_dct_scaleF;
    const float *midQ_truncQ = (const float *) cdk1r_tr_midQ_truncQ;
#endif
    set_zero( uq, N );

@@ -2227,7 +2227,7 @@ void msvq_dec(
        if ( i == 0 && applyIDCT_flag != 0 )
        {
#ifdef ERI_SNSVQ_ROMOPT
            if ( N == SNS_VQ_MAX_LEN )
            if ( maxN == SNS_VQ_MAX_LEN )
            {
                dcttype = IDCT_T2_XX_16;
                tcx_ind = ( applyIDCT_flag==20 )? 0 : 1; /* 20-->0  &&  10->>1 */
@@ -2241,16 +2241,13 @@ void msvq_dec(
                }
#endif 
                n_segm = SNS_VQ_DCT_NSEGM;
                cum_entries_per_segment = (int16_t*)snsSt1_cum_entries_per_segment[tcx_ind];
                W8Qx_dct_sections = (Word8 *const *) snsSt1_stage1_W8Qx_dct_sections[tcx_ind];
                cols_per_segment = (int16_t * )snsSt1_dct_cols_per_segment[tcx_ind];
                col_syn_shift = (int16_t *const *) snsSt1_dct_col_syn_shift[tcx_ind];
                cum_entries_per_segment = (const int16_t*)snsSt1_cum_entries_per_segment[tcx_ind];
                W8Qx_dct_sections = (const Word8 *const *) snsSt1_stage1_W8Qx_dct_sections[tcx_ind];
                cols_per_segment = (const int16_t *) snsSt1_dct_cols_per_segment[tcx_ind];
                col_syn_shift = (const int16_t *const *) snsSt1_dct_col_syn_shift[tcx_ind];
                max_trunc = SNS_VQ_DCT_MAXTRUNC;
                dct_scaleF = (float *)snsSt1_dct_scaleF[tcx_ind];
                midQ_truncQ = (float *)snsSt1_tr_midQ_truncQ[tcx_ind];
                


                dct_scaleF = (const float *) snsSt1_dct_scaleF[tcx_ind];
                midQ_truncQ = (const float *) snsSt1_tr_midQ_truncQ[tcx_ind];
            }

            dec_SNS_FDCNG_MSVQ_DCT_stage1(