Deprecation warning is D-specific, and doesn't apply to C11 semantic rules. --- int test(int a) { switch (a) { case 0: a = 1; case 1: return a; case 2: default: return -1; } }
@WalterBright created dlang/dmd pull request #13283 "fix Issue 22415 - ImportC: Deprecation: switch case fallthrough - use…" fixing this issue: - fix Issue 22415 - importC: Deprecation: switch case fallthrough - use 'goto case;' if intended https://github.com/dlang/dmd/pull/13283
dlang/dmd pull request #13283 "fix Issue 22415 - ImportC: Deprecation: switch case fallthrough - use…" was merged into master: - c17799324a05bcd9c008788805857c12bf8ee5f9 by Walter Bright: fix Issue 22415 - importC: Deprecation: switch case fallthrough - use 'goto case;' if intended https://github.com/dlang/dmd/pull/13283
dlang/dmd pull request #13344 "[stable] importC: Backport master fixes to stable" was merged into stable: - 5cbbd56942ed2b455aa09a0b9087b288621dead5 by Walter Bright: fix Issue 22415 - importC: Deprecation: switch case fallthrough - use 'goto case;' if intended https://github.com/dlang/dmd/pull/13344
dlang/dmd pull request #13421 "merge stable" was merged into master: - 53f3dc76d5aff132c5ac2a9474330af70d17914e by Iain Buclaw: [stable] importC: Backport master fixes to stable (#13344) * fix Issue 22415 - importC: Deprecation: switch case fallthrough - use 'goto case;' if intended * ImportC: improve parsing error message Co-authored-by: Walter Bright <walter@walterbright.com> https://github.com/dlang/dmd/pull/13421