Skip to content

Commit

Permalink
Fix Xcode 11 build (#25146)
Browse files Browse the repository at this point in the history
Summary:
Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style.

## Changelog

[iOS] [Fixed] - Xcode 11 beta build
Pull Request resolved: #25146

Differential Revision: D15628404

Pulled By: cpojer

fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
  • Loading branch information
ericlewis authored and facebook-github-bot committed Jun 4, 2019
1 parent 6b4e526 commit 46c7ada
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 46c7ada

Please sign in to comment.