Skip to content

Commit 3e211c5

Browse files
committed
Suppressing deprecation warnings on MRProgress and PSMenuItem so that builds can succeed in Xcode26
1 parent a362a74 commit 3e211c5

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Vendor/MRProgress/Sources/MRProgress/include/MRProgressHelper.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#import <UIKit/UIKit.h>
1010
#import <CoreGraphics/CoreGraphics.h>
1111

12+
#pragma clang diagnostic push
13+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
14+
1215

1316
static inline CGFloat MRCGFloatCeil(CGFloat);
1417

@@ -52,3 +55,5 @@ static inline CGFloat MRRotationForStatusBarOrientation() {
5255
}
5356
return 0;
5457
}
58+
59+
#pragma clang diagnostic pop

Vendor/PSMenuItem/Sources/PSMenuItem/PSMenuItem.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
#import <UIKit/UIKit.h>
2525

26+
#pragma clang diagnostic push
27+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
28+
2629
/**
2730
This subclass adds support for a block-based action on UIMenuItem.
2831
If you are as annoyed about the missing target/action pattern, you will love this.
@@ -59,3 +62,5 @@
5962
+ (void)installMenuHandlerForObject:(id)object;
6063

6164
@end
65+
66+
#pragma clang diagnostic pop

Vendor/PSMenuItem/Sources/PSMenuItem/PSMenuItem.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#import <objc/runtime.h>
2626
#import <objc/message.h>
2727

28+
#pragma clang diagnostic push
29+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
30+
2831
// imp_implementationWithBlock changed it's type in iOS6 (XCode 4.5)
2932
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 60000
3033
#define PSPDFBlockImplCast (__bridge void *)
@@ -166,3 +169,5 @@ - (void)performBlock {
166169
}
167170

168171
@end
172+
173+
#pragma clang diagnostic pop

0 commit comments

Comments
 (0)