[pacman-dev] [PATCH] Use attribute to declare case statement fallthroughs

Emil Velikov emil.l.velikov at gmail.com
Wed May 19 08:02:25 UTC 2021


On Mon, 17 May 2021 at 11:03, Allan McRae <allan at archlinux.org> wrote:
>
> Clang does not recognise the comment style notification of expected
> case statement fallthrough.
>
Worth borrowing the `fallthrough" logic from the kernel - it's much
easier to read.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/compiler_attributes.h?h=v5.13-rc2#n207

-Emil


More information about the pacman-dev mailing list