crash icon indicating copy to clipboard operation
crash copied to clipboard

configure.c:299: fallthrough ?

Open dcb314 opened this issue 3 years ago • 2 comments

clang compiler says:

configure.c:299:43: warning: this statement may fall through [-Wimplicit-fallthrough=]

Source code is

            case 'd':
                    target_data.flags |= DAEMON;
            case 'b':
                    build_configure(sp);
                    break;

dcb314 avatar Jan 07 '22 09:01 dcb314

That is an intended fallthrough.

k-hagio avatar Jan 20 '22 01:01 k-hagio

I suggest the source code gets marked up to indicate this.

/* fallthrough */

should do it.

dcb314 avatar Jan 20 '22 08:01 dcb314