kylef-archive / KFData

Core Data done right for iOS 5+/OS X 10.7+
http://cocoadocs.org/docsets/KFData/
BSD 2-Clause "Simplified" License
53 stars 7 forks source link

Adds a default label to prevent the -Wswitch warning. #67

Closed fgauchet closed 10 years ago

kylef commented 10 years ago

Thanks for the pull request @fgauchet. I've committed be34fbdd615184e489e33d9ff8304fb60424965e instead which fulfils the missing cases instead of default. So that Apple do ever add an extra clause we will see this error instead of it becoming silently hidden by the default clause.

Strangely, I though these warnings were already being handled due to GCC_WARN_CHECK_SWITCH_STATEMENTS already being set to YES in the test project.

fgauchet commented 10 years ago

@kylef thanks, is it possible to get a new cocoapod version so that we can get these warnings suppressed in crosswords as well?

kylef commented 10 years ago

@fgauchet Sorry for the delay, 1.0.5 is out now with these changes.