Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions JSONKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
////////////
Expand Down