Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 797fd06

Browse files
author
Benjamin Scholtysik (Reimold)
authored
Merge pull request #508 from MatkovIvan/feature/bump-minsdk-to-ios-9
Bump to iOS 9 and fix feedback layout
2 parents 3ce7e4d + 5300f8a commit 797fd06

19 files changed

+193
-419
lines changed

Classes/BITAttributedLabel.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#define kBITLineBreakWordWrapTextWidthScalingFactor (M_PI / M_E)
3434

3535
#pragma clang diagnostic push
36-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
3736
#pragma clang diagnostic ignored "-Wunused-variable"
3837
#pragma clang diagnostic ignored "-Wunused-parameter"
3938
#pragma clang diagnostic ignored "-Wcast-qual"

Classes/BITCrashCXXExceptionHandler.mm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ static inline void BITCrashIterateExceptionHandlers_unlocked(const BITCrashUncau
130130
}
131131
}
132132

133-
#pragma clang diagnostic push
134-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
135133
static void BITCrashUncaughtCXXTerminateHandler(void)
136134
{
137135
BITCrashUncaughtCXXExceptionInfo info = {
@@ -240,7 +238,6 @@ + (void)removeCXXExceptionHandler:(BITCrashUncaughtCXXExceptionHandler)handler
240238
}
241239
} OSSpinLockUnlock(&_BITCrashCXXExceptionHandlingLock);
242240
}
243-
#pragma clang diagnostic pop
244241

245242
@end
246243

Classes/BITCrashManager.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ - (void) registerObservers {
478478
NSNotificationName name = UIApplicationDidBecomeActiveNotification;
479479
#pragma clang diagnostic push
480480
#pragma clang diagnostic ignored "-Wpartial-availability"
481-
if (bit_isRunningInAppExtension() && &NSExtensionHostDidBecomeActiveNotification != NULL) {
481+
#pragma clang diagnostic ignored "-Wtautological-pointer-compare"
482+
if (bit_isRunningInAppExtension() && &NSExtensionHostDidBecomeActiveNotification != nil) {
482483
name = NSExtensionHostDidBecomeActiveNotification;
483484
}
484485
#pragma clang diagnostic pop
@@ -515,7 +516,8 @@ - (void) registerObservers {
515516
NSNotificationName name = UIApplicationDidEnterBackgroundNotification;
516517
#pragma clang diagnostic push
517518
#pragma clang diagnostic ignored "-Wpartial-availability"
518-
if (bit_isRunningInAppExtension() && &NSExtensionHostDidEnterBackgroundNotification != NULL) {
519+
#pragma clang diagnostic ignored "-Wtautological-pointer-compare"
520+
if (bit_isRunningInAppExtension() && &NSExtensionHostDidEnterBackgroundNotification != nil) {
519521
name = NSExtensionHostDidEnterBackgroundNotification;
520522
}
521523
#pragma clang diagnostic pop
@@ -532,7 +534,8 @@ - (void) registerObservers {
532534
NSNotificationName name = UIApplicationWillEnterForegroundNotification;
533535
#pragma clang diagnostic push
534536
#pragma clang diagnostic ignored "-Wpartial-availability"
535-
if (bit_isRunningInAppExtension() && &NSExtensionHostWillEnterForegroundNotification != NULL) {
537+
#pragma clang diagnostic ignored "-Wtautological-pointer-compare"
538+
if (bit_isRunningInAppExtension() && &NSExtensionHostWillEnterForegroundNotification != nil) {
536539
name = NSExtensionHostWillEnterForegroundNotification;
537540
}
538541
#pragma clang diagnostic pop

Classes/BITCrashReportTextFormatter.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ + (NSString *)stringValueForCrashReport:(BITPLCrashReport *)report crashReporter
277277
if (codeType != nil)
278278
break;
279279
}
280-
#pragma GCC diagnostic push
281-
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
280+
282281
/* If we were unable to determine the code type, fall back on the legacy architecture value. */
283282
if (codeType == nil) {
284283
switch (report.systemInfo.architecture) {
@@ -305,7 +304,6 @@ + (NSString *)stringValueForCrashReport:(BITPLCrashReport *)report crashReporter
305304
break;
306305
}
307306
}
308-
#pragma GCC diagnostic pop
309307
}
310308

311309
{

0 commit comments

Comments
 (0)