Skip to content

Commit

Permalink
Fix unused attribute parsing for Xcode 11 beta
Browse files Browse the repository at this point in the history
Fixes crash when any native method with unused attribute is called
  • Loading branch information
ex3ndr authored Jun 4, 2019
1 parent a44ab29 commit ecb8cb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions React/Base/RCTModuleMethod.mm
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ static BOOL RCTParseSelectorPart(const char **input, NSMutableString *selector)
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__attribute__((unused))") ||
RCTReadString(input, "__attribute__((__unused))") ||
RCTReadString(input, "__unused");
}

Expand Down

0 comments on commit ecb8cb5

Please sign in to comment.