Commit 99ef80a0 authored by vaclav's avatar vaclav
Browse files

Merge branch '938-warnings-with-gcc-12-2-0-debian-12' into 'main'

Resolve "Warnings with gcc 12.2.0 (Debian 12)"

See merge request !1286
parents 75e669c1 323d1c37
Loading
Loading
Loading
Loading
Loading

lib_com/options.h

100644 → 100755
+1 −0
Original line number Diff line number Diff line
@@ -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 ################################## */

+2 −0
Original line number Diff line number Diff line
@@ -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 );