Skip to content

Commit 84b71e5

Browse files
committed
Supress warnings on fallback codepath in image_picker_ios
1 parent af0fe25 commit 84b71e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/FLTImagePickerImageUtil.m‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ + (GIFInfo *)scaledGIFImage:(NSData *)data
129129
if (@available(iOS 14.0, *)) {
130130
gifTypeIdentifier = UTTypeGIF.identifier;
131131
} else {
132+
#pragma clang diagnostic push
133+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
132134
gifTypeIdentifier = (NSString *)kUTTypeGIF;
135+
#pragma clang diagnostic pop
133136
}
134137
options[(NSString *)kCGImageSourceTypeIdentifierHint] = gifTypeIdentifier;
135138

0 commit comments

Comments
 (0)