diff --git a/AFNetworking/AFHTTPClient.m b/AFNetworking/AFHTTPClient.m index 3fe034d..b859313 100644 --- a/AFNetworking/AFHTTPClient.m +++ b/AFNetworking/AFHTTPClient.m @@ -486,10 +486,7 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) { break; case AFJSONParameterEncoding:; [request setValue:[NSString stringWithFormat:@"application/json; charset=%@", charset] forHTTPHeaderField:@"Content-Type"]; -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wassign-enum" - [request setHTTPBody:[NSJSONSerialization dataWithJSONObject:parameters options:0 error:&error]]; -#pragma clang diagnostic pop + [request setHTTPBody:[NSJSONSerialization dataWithJSONObject:parameters options:(NSJSONWritingOptions)0 error:&error]]; break; case AFPropertyListParameterEncoding:; [request setValue:[NSString stringWithFormat:@"application/x-plist; charset=%@", charset] forHTTPHeaderField:@"Content-Type"];