Skip to content

Commit

Permalink
Ignore warnings on imported NYTPhotoViewer and FLAnimatedImage de…
Browse files Browse the repository at this point in the history
…pendencies.
  • Loading branch information
staykids committed Feb 24, 2021
1 parent 0ea0519 commit b6e870b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

#define MEGABYTE (1024 * 1024)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"

// This is how the fastest browsers do it as per 2012: http://nullsleep.tumblr.com/post/16524517190/animated-gif-minimum-frame-delay-browser-compatibility
const NSTimeInterval kFLAnimatedImageDelayTimeIntervalMinimum = 0.02;

Expand Down Expand Up @@ -814,3 +817,4 @@ - (NSMethodSignature *)methodSignatureForSelector:(SEL)selector


@end
#pragma clang diagnostic pop
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ - (void)debug_animatedImageView:(FLAnimatedImageView *)animatedImageView waiting
@end
#endif


#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
@interface FLAnimatedImageView ()

// Override of public `readonly` properties as private `readwrite`
Expand Down Expand Up @@ -440,3 +441,4 @@ - (void)displayLayer:(CALayer *)layer


@end
#pragma clang diagnostic pop
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import "NYTPhotoCaptionView.h"

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
static const CGFloat NYTPhotoCaptionViewHorizontalMargin = 8.0;
static const CGFloat NYTPhotoCaptionViewVerticalMargin = 7.0;

Expand Down Expand Up @@ -162,3 +164,4 @@ - (void)updateTextViewAttributedText {
}

@end
#pragma clang diagnostic pop
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#import <FLAnimatedImage/FLAnimatedImage.h>
#endif

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
NSString * const NYTPhotosViewControllerDidNavigateToPhotoNotification = @"NYTPhotosViewControllerDidNavigateToPhotoNotification";
NSString * const NYTPhotosViewControllerWillDismissNotification = @"NYTPhotosViewControllerWillDismissNotification";
NSString * const NYTPhotosViewControllerDidDismissNotification = @"NYTPhotosViewControllerDidDismissNotification";
Expand Down Expand Up @@ -553,3 +555,4 @@ - (void)pageViewController:(UIPageViewController *)pageViewController didFinishA
}

@end
#pragma clang diagnostic pop

0 comments on commit b6e870b

Please sign in to comment.