[flac-dev] GCC7: -Wimplicit-fallthrough

lvqcl lvqcl.mail at gmail.com
Mon Jun 26 07:53:43 UTC 2017


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/


More information about the flac-dev mailing list