Closed david-a-wheeler closed 5 months ago
Commits I've found for fallthrough
Could be missing some bits. I've not found a reference around 5.10
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10 if you want to ctrl+f through for fallthrough
docs:
not here yet https://www.kernel.org/doc/html/v5.1/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
starts to appear https://www.kernel.org/doc/html/v5.3/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
I am also not sure where the reference to 5.10 originates from. I was responsible for adding the last sentence of the section, referring to 6.4 after I also found https://github.com/torvalds/linux/commit/192614010a5052fe92611c7076ef664fd9bb60e8 to be the first commit with fallthrough
in the form the guide originally referred to.
Addressing this inconsistency in #494 that also removes the redundant note below the example.
The current text says, "The C17 standard does not provide a mechanism to mark intentional fallthroughs....". It then notes the Linux kernel. Is it version 5.10 or 6.4 that started using this?