Skip to content

Compiler Warning on pointer comparison in RenderConfigReader_read()

Basic info

  • Float reference:
    • Encoder (float): n/a
    • Decoder (float): n/a
  • Fixed point:

Bug description

GCC 12.2 triggers a compiler warning for a pointer comparison in RenderConfigReader_read():

lib_util/render_config_reader.c: In function 'RenderConfigReader_read':
lib_util/render_config_reader.c:2205: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]
 2205 |                         if ( i > pRenderConfigReader->nFG || &pRenderConfigReader->pFG[i] == NULL )
      |