GCC7: -Wimplicit-fallthrough

lvqcl <[email protected]>
Newsgroups gmane.comp.audio.compression.flac.devel
Message-ID <op.y2fj7tukcba0by@userme-pc>
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/
_______________________________________________
flac-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.