Skip to content

Commit

Permalink
Force remove compiler warning about deprecated attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jmig committed Aug 26, 2015
1 parent 3a91eef commit d79e4ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PDTSimpleCalendar/PDTSimpleCalendarViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,10 @@ - (NSCalendarUnit)weekCalendarUnitDependingOniOSVersion {
if ([self.calendar respondsToSelector:@selector(isDateInToday:)]) {
return NSCalendarUnitWeekOfMonth;
} else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
return NSWeekCalendarUnit;
#pragma clang diagnostic pop
}
}

Expand Down

0 comments on commit d79e4ce

Please sign in to comment.