From bd6284c0cafd17b3bbbd372ce9af0015bcc4179e Mon Sep 17 00:00:00 2001 From: Mike Abdullah Date: Fri, 14 Jun 2013 18:38:24 +0100 Subject: [PATCH] Suppress CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS --- JSONKit.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/JSONKit.m b/JSONKit.m index 0e9331f..6f0cb02 100644 --- a/JSONKit.m +++ b/JSONKit.m @@ -2203,6 +2203,11 @@ static id _JKParseUTF8String(JKParseState *parseState, BOOL mutableCollections, #pragma mark Deprecated as of v1.4 //////////// +// The implementation of these deprecated methods is intentional, since JSONKit is +// the one who declares them deprecated! So, suppress that particular compiler warning +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-implementations" + // Deprecated in JSONKit v1.4. Use objectWithUTF8String:length: instead. - (id)parseUTF8String:(const unsigned char *)string length:(size_t)length { @@ -2227,6 +2232,8 @@ - (id)parseJSONData:(NSData *)jsonData error:(NSError **)error return([self objectWithData:jsonData error:error]); } +#pragma clang diagnostic pop + //////////// #pragma mark Methods that return immutable collection objects ////////////