Skip to content

Commit 93d9263

Browse files
committed
去掉烦人的警告
1 parent 9d0d13a commit 93d9263

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Coding_iOS/Vendor/AFNetworking/NSURLConnection/AFHTTPRequestOperation.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
/**
3636
The last HTTP response received by the operation's connection.
3737
*/
38+
#pragma clang diagnostic push
39+
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
3840
@property (readonly, nonatomic, strong) NSHTTPURLResponse *response;
41+
#pragma clang diagnostic pop
3942

4043
/**
4144
Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to an AFHTTPResponse serializer, which uses the raw data as its response object. The serializer validates the status code to be in the `2XX` range, denoting success. If the response serializer generates an error in `-responseObjectForResponse:data:error:`, the `failure` callback of the session task or request operation will be executed; otherwise, the `success` callback will be executed.

Coding_iOS/Vendor/AFNetworking/NSURLSession/AFHTTPSessionManager.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@
8989
9090
@warning `responseSerializer` must not be `nil`.
9191
*/
92+
#pragma clang diagnostic push
93+
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
9294
@property (nonatomic, strong) AFHTTPResponseSerializer <AFURLResponseSerialization> * responseSerializer;
95+
#pragma clang diagnostic pop
9396

9497
///---------------------
9598
/// @name Initialization

0 commit comments

Comments
 (0)