-
Notifications
You must be signed in to change notification settings - Fork 1
fixes preventing compilation on mac #20
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ int main(int argc, char **argv) | |
| // Click X on window | ||
| running = false; | ||
| break; | ||
| case SDL_KEYDOWN: [[fallthrough]] | ||
| case SDL_KEYDOWN: [[fallthrough]]; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not the only [[fallthrough]] statement in the codebase. Is only this one broken on Mac?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, all the other fallthroughs I took a look at have semicolons after actually (though I didn't look at all of them).. not sure how it was compiling without it |
||
| case SDL_KEYUP: | ||
| // Key press event | ||
| if (e.key.keysym.sym == SDLK_ESCAPE) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
val != val will never be true, so this check should probably be deleted