Re: [flac-dev] GCC7: -Wimplicit-fallthrough

2017-06-26 Thread Erik de Castro Lopo
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 through Yeah, that is a new warning in GCC 7. There is a way of annotating the code with a comment

[flac-dev] GCC7: -Wimplicit-fallthrough

2017-06-26 Thread lvqcl
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]; ^~~