Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C fallthrough: Which version of the Linux kernel? #480

Closed
david-a-wheeler opened this issue May 2, 2024 · 2 comments · Fixed by #494
Closed

C fallthrough: Which version of the Linux kernel? #480

david-a-wheeler opened this issue May 2, 2024 · 2 comments · Fixed by #494

Comments

@david-a-wheeler
Copy link
Contributor

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?

@thomasnyman
Copy link
Contributor

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 torvalds/linux@1926140 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants