|
@@ -829,14 +829,11 @@ NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2;
|
|
|
@end
|
|
|
|
|
|
@implementation AFMultipartBodyStream
|
|
|
-#pragma clang diagnostic push
|
|
|
-#pragma clang diagnostic ignored "-Wimplicit-atomic-properties"
|
|
|
#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1100)
|
|
|
@synthesize delegate;
|
|
|
#endif
|
|
|
@synthesize streamStatus;
|
|
|
@synthesize streamError;
|
|
|
-#pragma clang diagnostic pop
|
|
|
|
|
|
- (instancetype)initWithStringEncoding:(NSStringEncoding)encoding {
|
|
|
self = [super init];
|
|
@@ -1082,8 +1079,6 @@ typedef enum {
|
|
|
return YES;
|
|
|
}
|
|
|
|
|
|
-#pragma clang diagnostic push
|
|
|
-#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
|
|
switch (self.inputStream.streamStatus) {
|
|
|
case NSStreamStatusNotOpen:
|
|
|
case NSStreamStatusOpening:
|
|
@@ -1097,7 +1092,6 @@ typedef enum {
|
|
|
default:
|
|
|
return NO;
|
|
|
}
|
|
|
-#pragma clang diagnostic pop
|
|
|
}
|
|
|
|
|
|
- (NSInteger)read:(uint8_t *)buffer
|
|
@@ -1162,8 +1156,6 @@ typedef enum {
|
|
|
return YES;
|
|
|
}
|
|
|
|
|
|
-#pragma clang diagnostic push
|
|
|
-#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
|
|
switch (_phase) {
|
|
|
case AFEncapsulationBoundaryPhase:
|
|
|
_phase = AFHeaderPhase;
|
|
@@ -1183,7 +1175,6 @@ typedef enum {
|
|
|
break;
|
|
|
}
|
|
|
_phaseReadOffset = 0;
|
|
|
-#pragma clang diagnostic pop
|
|
|
|
|
|
return YES;
|
|
|
}
|