Skip to content

Warnings with gcc 12.2.0 (Debian 12)

gcc 12.2.0 produces the following warnings when compiling with the Makefile

lib_enc/enc_higher_acelp.c: In function ‘transf_cdbk_enc’:
lib_enc/enc_higher_acelp.c:245:5: warning: ‘set_f’ accessing 4 bytes in a region of size 0 [-Wstringop-overflow=]
  245 |     set_f( x_tran + Nsv * WIDTH_BAND, 0.0f, L_SUBFR - WIDTH_BAND * Nsv );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_enc/enc_higher_acelp.c:245:5: note: referencing argument 1 of type ‘float[0]’
In file included from lib_enc/enc_higher_acelp.c:44:
lib_com/prot.h:195:6: note: in a call to function ‘set_f’
  195 | void set_f(
      |      ^~~~~
lib_enc/enc_higher_acelp.c:245:5: warning: ‘set_f’ accessing 4 bytes in a region of size 0 [-Wstringop-overflow=]
  245 |     set_f( x_tran + Nsv * WIDTH_BAND, 0.0f, L_SUBFR - WIDTH_BAND * Nsv );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_enc/enc_higher_acelp.c:245:5: note: referencing argument 1 of type ‘float[0]’
lib_com/prot.h:195:6: note: in a call to function ‘set_f’
  195 | void set_f(
      |      ^~~~~
lib_util/render_config_reader.c: In function ‘RenderConfigReader_read’:
lib_util/render_config_reader.c:2264:91: warning: the comparison will always evaluate as ‘false’ for the pointer operand in ‘pRenderConfigReader->pFG + (sizetype)((long unsigned int)i * 16)’ must not be NULL [-Waddress]
 2264 |                         if ( i > pRenderConfigReader->nFG || &pRenderConfigReader->pFG[i] == NULL )
      | 
lib_dec/ivas_mdct_core_dec.c: In function ‘ivas_mdct_core_reconstruct’:
lib_dec/ivas_mdct_core_dec.c:939:14: warning: the comparison will always evaluate as ‘true’ for the pointer operand in ‘signal_outFB + (sizetype)((long unsigned int)ch * 4800)’ must not be NULL [-Waddress]
  939 |         if ( signal_outFB[ch] )
      |              ^~~~~~~~~~~~
  • lib_enc/enc_higher_acelp.c:245:5: warning: ‘set_f’ accessing 4 bytes in a region of size 0 [-Wstringop-overflow=]
  • lib_util/render_config_reader.c:2264:91: warning: the comparison will always evaluate as ‘false’ for the pointer operand in ‘pRenderConfigReader->pFG + (sizetype)((long unsigned int)i * 16)’ must not be NULL [-Waddress] --> #1285 (closed)
  • lib_dec/ivas_mdct_core_dec.c:939:14: warning: the comparison will always evaluate as ‘true’ for the pointer operand in ‘signal_outFB + (sizetype)((long unsigned int)ch * 4800)’ must not be NULL [-Waddress] --> #1286
Edited by multrus