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

Fix implicit fallthrough in array inference. #2251

Merged
merged 1 commit into from
Sep 27, 2017
Merged

Conversation

tokenrove
Copy link
Contributor

Without these returns, these switches fail to compile on a Debian system with gcc 7.2.0 because of -Werror=implicit-fallthrough. I didn't spend any time scrutinizing this part of the code to determine if the fallthroughs were intentional, and it's possible that there's something strange about my setup that causes this to be a problem, but I figured the best course of action was just to open a PR and see what happens.

I don't think it makes a difference, but the command I used to build was:

make config=release prefix=$HOME/lib/pony all install

Without these returns, these switches fail to compile with gcc 7.2.0
because of -Werror=implicit-fallthrough.
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Sep 27, 2017
@SeanTAllen
Copy link
Member

Awesome catch. Thanks @tokenrove!

@jemc jemc changed the title Remove implicit fallthrough to fix build on gcc 7.2.0 Fix implicit fallthrough in array inference. Sep 27, 2017
@jemc
Copy link
Member

jemc commented Sep 27, 2017

Excellent! Thanks for fixing this bug.

@jemc jemc merged commit 752f613 into ponylang:master Sep 27, 2017
ponylang-main added a commit that referenced this pull request Sep 27, 2017
@tokenrove
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants