Skip to content

Add SIMPLICITY_FALLTHROUGH macro and enable -Wimplicit-fallthrough in CI#345

Open
delta1 wants to merge 1 commit into
BlockstreamResearch:masterfrom
delta1:2026-07-fallthrough
Open

Add SIMPLICITY_FALLTHROUGH macro and enable -Wimplicit-fallthrough in CI#345
delta1 wants to merge 1 commit into
BlockstreamResearch:masterfrom
delta1:2026-07-fallthrough

Conversation

@delta1

@delta1 delta1 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Replace the old /@fallthrough@/ comment convention with a [[fallthrough]]-style attribute macro, so clang's -Wimplicit-fallthrough can verify intentional switch fallthroughs at compile time.

I noticed this from a failure in the newer Elements CI: https://github.com/ElementsProject/elements/actions/runs/28760714747/job/85394013375?pr=1569

Replace the old /*@fallthrough@*/ comment convention with a
[[fallthrough]]-style attribute macro so clang's -Wimplicit-fallthrough
can verify intentional switch fallthroughs at compile time, and add a
CI job that builds and tests the C library with clang under
-Wimplicit-fallthrough -Wconditional-uninitialized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant