From 35768db8c95f4be55324c61b7b6b3b55a5d589e9 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Thu, 3 Dec 2015 23:15:09 -0800 Subject: [PATCH] Mark the GRPCRequestHeaders protocol deprecated --- src/objective-c/GRPCClient/GRPCCall.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h index 2a6ae5cedc7..c9fda428552 100644 --- a/src/objective-c/GRPCClient/GRPCCall.h +++ b/src/objective-c/GRPCClient/GRPCCall.h @@ -50,6 +50,8 @@ #import #import +#include + #pragma mark gRPC errors /** Domain of NSError objects produced by gRPC. */ @@ -235,6 +237,7 @@ extern id const kGRPCTrailersKey; #pragma mark Backwards compatibiity /** This protocol is kept for backwards compatibility with existing code. */ +DEPRECATED_MSG_ATTRIBUTE("Use NSDictionary or NSMutableDictionary instead.") @protocol GRPCRequestHeaders @property(nonatomic, readonly) NSUInteger count; @@ -245,6 +248,9 @@ extern id const kGRPCTrailersKey; - (void)removeObjectForKey:(NSString *)key; @end +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated" /** This is only needed for backwards-compatibility. */ @interface NSMutableDictionary (GRPCRequestHeaders) @end +#pragma clang diagnostic pop