If I compile libFLAC with GCC 7.1 I see many warnings like
lpc.c: In function 'FLAC__lpc_compute_residual_from_qlp_coefficients':
lpc.c:489:18: warning: this statement may fall through
[-Wimplicit-fallthrough=]
case 32: sum += qlp_coeff[31] * data[i-32];
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lpc.c:490:5: note: here
case 31: sum += qlp_coeff[30] * data[i-31];
^~~~
lpc.c:490:18: warning: this statement may fall through
[-Wimplicit-fallthrough=]
case 31: sum += qlp_coeff[30] * data[i-31];
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lpc.c:491:5: note: here
case 30: sum += qlp_coeff[29] * data[i-30];
^~~~
...etc.
Relevant link:
https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
lvqcl wrote:> If I compile libFLAC with GCC 7.1 I see many warnings like > > lpc.c: In function 'FLAC__lpc_compute_residual_from_qlp_coefficients': > lpc.c:489:18: warning: this statement may fall throughYeah, that is a new warning in GCC 7. There is a way of annotating the code with a comment to tell the compiler that the fall through is intentional. I'll install gcc 7 and fix these ASAP. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/