Skip to content

Compiler warning in lib_dec/ivas_jbm_dec.c with DEBUGGING disabled

There are compiler warnings in lib_dec/ivas_jbm_dec.c with DEBUGGING disabled (i.e. also for the package to SA4):

lib_dec/ivas_jbm_dec.c: In function 'ivas_jbm_dec_get_tc_buffer_mode':
lib_dec/ivas_jbm_dec.c:2228:5: warning: enumeration value 'RENDERER_OSBA_STEREO' not handled in switch [-Wswitch]
 2228 |     switch ( st_ivas->renderer_type )
      |     ^~~~~~
lib_dec/ivas_jbm_dec.c:2228:5: warning: enumeration value 'RENDERER_OSBA_AMBI' not handled in switch [-Wswitch]
lib_dec/ivas_jbm_dec.c:2228:5: warning: enumeration value 'RENDERER_OSBA_LS' not handled in switch [-Wswitch]

The mentioned cases are obviously not implemented - a way to suppress the warnings could be to remove the #ifdef DEBUGGING ... #endif around the default - then they would run into an assert(0).

@bayers: any opinion?