[PATCH v2 21/28] Annotate swtich fall-through

Collin Funk collin.funk1@gmail.com
Tue Oct 28 18:27:21 GMT 2025


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:

> The clang default to warning for missing fall-through and it does
> not support all comment-like annotation that gcc does.  Use C23
> [[fallthrough]] annotation instead.
> proper attribute instead.
> ---

Looks good, it seems GCC has supported this since version 10 [1].

I will review some of the other patches later today.

Reviewed-by: Collin Funk <collin.funk1@gmail.com>

Collin

[1] https://en.cppreference.com/w/c/compiler_support/23


More information about the Libc-alpha mailing list