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? #287

Closed
r-barnes opened this issue Jun 20, 2024 · 4 comments
Closed

Intentional fallthroughs? #287

r-barnes opened this issue Jun 20, 2024 · 4 comments

Comments

@r-barnes
Copy link

Is the fallthrough on this line from the underscore case to the asterisk case intentional?

If not, can we use a break; to fix the bug? If so, can we use __attribute__((fallthrough)); to mark it as explicit?

@r-barnes
Copy link
Author

r-barnes commented Jul 1, 2024

The fallthrough here looks as though it is probably intentional - just double checking, though - is it?

@Orc
Copy link
Owner

Orc commented Jul 1, 2024 via email

@r-barnes
Copy link
Author

r-barnes commented Jul 1, 2024

@Orc - Thanks, I've put up #288

What about the underscore->asterisk fallthrough here?

@Orc
Copy link
Owner

Orc commented Jul 1, 2024

I'm going to close this issue because switch fallthrough is part of the language (c.f. Duff's Device)

@Orc Orc closed this as completed Jul 1, 2024
Repository owner locked as resolved and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants