Skip to content

Commit d79e4ce

Browse files
committed
Force remove compiler warning about deprecated attribute
1 parent 3a91eef commit d79e4ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PDTSimpleCalendar/PDTSimpleCalendarViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ - (NSCalendarUnit)weekCalendarUnitDependingOniOSVersion {
347347
if ([self.calendar respondsToSelector:@selector(isDateInToday:)]) {
348348
return NSCalendarUnitWeekOfMonth;
349349
} else {
350+
#pragma clang diagnostic push
351+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
350352
return NSWeekCalendarUnit;
353+
#pragma clang diagnostic pop
351354
}
352355
}
353356

0 commit comments

Comments
 (0)