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

Red compile alert #2

Open
rodrigozanatta opened this issue Jul 13, 2012 · 1 comment
Open

Red compile alert #2

rodrigozanatta opened this issue Jul 13, 2012 · 1 comment

Comments

@rodrigozanatta
Copy link

Hi, I don't know if Xcode changed their config, but I download your project and compile it in the last Xcode. It give-me the error:

Enumeration values 'UIGestureRecognizerStatePossible', 'UIGestureRecognizerStateCancelled', and 'UIGestureRecognizerStateFailed' not handled in switch

Is just add a default: break; line to solve, but is a compile error..

@jemmons
Copy link
Owner

jemmons commented Jul 24, 2012

This is a feature of the new LLVM compiler. I find this particular warning unhelpful (as I often add a final "count" item to the end of my enumerations that I never want to hit in a switch statement), so I've set GCC_WARN_CHECK_SWITCH_STATEMENTS (AKA: Check Switch Statements) to NO in my build settings. Feel free to do the same if you don't want to change the code. Or add the default case. That's perfectly correct as well.

Thanks!

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

No branches or pull requests

2 participants