jemmons / PageCurl

A page curl/page flip example for the iPad
Other
147 stars 27 forks source link

Red compile alert #2

Open rodrigozanatta opened 12 years ago

rodrigozanatta commented 12 years ago

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 commented 12 years ago

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!