Skip to content

Release build failing when treating warnings as errors

Basic info

  • Commit SHA: 3c8399c7
  • Platform: Linux gcc 9.4.0 / Mac clang 15.0.0

Bug description

After !1249 (merged) build warnings are treated as errors.

Building the code using CMake in Release mode fails because of warnings.

On Mac:

lib_dec/ivas_qmetadata_dec.c:4250:19: error: variable 'nbits' set but not used [-Werror,-Wunused-but-set-variable]

On Linux:

lib_com/tns_base.c: In function ‘ITF_Detect’:
lib_com/tns_base.c:735:20: error: ‘parCoeff[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  735 |     a[1] = parCoeff[0];

Ways to reproduce

cmake . -Bbuild-release -DCMAKE_BUILD_TYPE=Release
cmake --build build-release