diff --git a/lib_com/options.h b/lib_com/options.h old mode 100644 new mode 100755 index dbd90bcc3a85717f4c7dda0a3d874bef6135b39b..9f6d5f892527db86b797075c39514ceaddbf7237 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -155,6 +155,7 @@ #define FIX_910_REMOVE_DUPLICATION_TD_REND /* VA: issue 910: remove duplication of function ivas_td_binaural_renderer() */ #define FIX_940_DEBUGGING_VARIABLE /* Nokia: issue #940: remove debugging variable */ #define FIX_911_REMOVE_CREND_DUPLICATION /* VA: issue 911: resolve duplication of CRend binaural external renderer function */ +#define FIX_938_GCC_12_WARNINGS /* VA: issue #938: remove set_f(.,.,0) call in which length is always 0 to remove GCC 12.0 warning */ /* #################### End BE switches ################################## */ diff --git a/lib_enc/enc_higher_acelp.c b/lib_enc/enc_higher_acelp.c index 5610bdfe4e9add94f1660bc404b11e07e06b868f..f58f0cb94220ad949a7efcf0da3eac4b7b743a4d 100644 --- a/lib_enc/enc_higher_acelp.c +++ b/lib_enc/enc_higher_acelp.c @@ -242,8 +242,10 @@ void transf_cdbk_enc( x_tran[i] = (float) ( x_norm[i] ); } +#ifndef FIX_938_GCC_12_WARNINGS set_f( x_tran + Nsv * WIDTH_BAND, 0.0f, L_SUBFR - WIDTH_BAND * Nsv ); +#endif if ( st->coder_type != INACTIVE && st->core_brate >= MIN_BRATE_AVQ_EXC && st->core_brate <= MAX_BRATE_AVQ_EXC_TD && !harm_flag_acelp ) { mvr2r( x_tran, code_preQ, L_SUBFR );