Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
cherrypick: Fix Xcode 11 build (facebook#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: facebook#25146

Differential Revision: D15628404

Pulled By: cpojer

fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
Commit:
46c7ada [46c7ada]
Author:
Eric Lewis <ericlewis777@gmail.com>
Date:
4 June 2019 at 20:54:59 BST
Commit Date:
4 June 2019 at 20:59:34 BST
  • Loading branch information
ericlewis authored and lukaszfran committed Oct 21, 2019
1 parent 77247e8 commit e65b4e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions React/Base/RCTModuleMethod.mm
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ static BOOL RCTParseSelectorPart(const char **input, NSMutableString *selector)

static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__unused") ||
RCTReadString(input, "__attribute__((unused))");
return RCTReadString(input, "__attribute__((unused))") ||
RCTReadString(input, "__attribute__((__unused__))") ||
RCTReadString(input, "__unused");
}

static RCTNullability RCTParseNullability(const char **input)
Expand Down

0 comments on commit e65b4e6

Please sign in to comment.