Skip to content
New issue

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

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

Already on GitHub? # to your account

Compile cleanly with -Wunreachable-code #224

Merged
merged 2 commits into from
Apr 2, 2014
Merged

Conversation

tewha
Copy link
Contributor

@tewha tewha commented Feb 24, 2014

Based on Apple's recent security blunder, I turned -Wunreachable-code on in my projects. I found a couple places were MMDrawerController doesn't compile cleanly under this: one in the MMDrawerController.m, the other in the sample project. This pull request fixes both.

See: https://www.imperialviolet.org/2014/02/22/applebug.html

This is unreachable due to the return on the previous line.
The bottom half of this is unreachable due to the if having a simple else case.
@kcharwood kcharwood added this to the 0.5.4 milestone Apr 2, 2014
@kcharwood
Copy link
Contributor

Thanks man 🍻

kcharwood added a commit that referenced this pull request Apr 2, 2014
Compile cleanly with -Wunreachable-code
@kcharwood kcharwood merged commit 3804c52 into mutualmobile:master Apr 2, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants