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

Intentional fallthroughs? #501

Closed
r-barnes opened this issue Jul 22, 2024 · 1 comment · Fixed by #499
Closed

Intentional fallthroughs? #501

r-barnes opened this issue Jul 22, 2024 · 1 comment · Fixed by #499

Comments

@r-barnes
Copy link

Are these fallthroughs intentional? If so, can we mark them with __attribute__((fallthrough)) so that -Wimplicit-fallthrough will pass with them. If not, can we add break to fix the bug(s)?

case 3:

case 2:

case 1:

@skirpichev
Copy link
Contributor

Are these fallthroughs intentional?

Absolutely.

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 a pull request may close this issue.

2 participants