From 01f31ed73039f8d75f92747e7234a31bf450bfda Mon Sep 17 00:00:00 2001 From: malenov Date: Thu, 14 Dec 2023 13:02:56 +0100 Subject: [PATCH] remove set_f(.,.,0) call in which length is always 0 to remove GCC 12.0 warning --- lib_com/options.h | 1 + lib_enc/enc_higher_acelp.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index bc177f9e4d..cff90860cf 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -157,6 +157,7 @@ #define FIX_929_RENDERER_CMDL /* Nokia: issue #929: renderer command line option */ #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_938_GCC_12_WARNINGS /* VoiceAge: 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 5610bdfe4e..4b06eb6ad7 100644 --- a/lib_enc/enc_higher_acelp.c +++ b/lib_enc/enc_higher_acelp.c @@ -242,7 +242,9 @@ 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 ) { -- GitLab