Skip to content

Commit 46c7ada

Browse files
ericlewisfacebook-github-bot
authored andcommittedJun 4, 2019
Fix Xcode 11 build (#25146)
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
1 parent 6b4e526 commit 46c7ada

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎React/Base/RCTModuleMethod.mm

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static BOOL RCTParseSelectorPart(const char **input, NSMutableString *selector)
9191
static BOOL RCTParseUnused(const char **input)
9292
{
9393
return RCTReadString(input, "__attribute__((unused))") ||
94+
RCTReadString(input, "__attribute__((__unused__))") ||
9495
RCTReadString(input, "__unused");
9596
}
9697

0 commit comments

Comments
 (0)
Please sign in to comment.