From 166a5ddf88aca0d0235e48c624681eec095e9ef8 Mon Sep 17 00:00:00 2001 From: Max Ovtsin Date: Mon, 23 Mar 2020 13:42:09 -0700 Subject: [PATCH] Get ReactiveNative compiled with Clang 10 (#28362) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/28362 Fixed a few compilation errors emitted by Clang 10. Changelog: [iOS] [Fixed] - Get ready for Clang 10 Differential Revision: D20549970 fbshipit-source-id: dc36a85d90d3e43a05f045feb57c6ab6ded67da7 --- React/CxxBridge/RCTCxxBridge.mm | 2 +- ReactCommon/fabric/graphics/platform/ios/Color.cpp | 1 + .../turbomodule/core/platform/ios/RCTTurboModuleManager.mm | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/React/CxxBridge/RCTCxxBridge.mm b/React/CxxBridge/RCTCxxBridge.mm index 18b0e09b042366..6e676f9e205752 100644 --- a/React/CxxBridge/RCTCxxBridge.mm +++ b/React/CxxBridge/RCTCxxBridge.mm @@ -768,7 +768,7 @@ - (void)registerExtraLazyModules #endif } -- (NSArray *)_initializeModules:(NSArray> *)modules +- (NSArray *)_initializeModules:(NSArray *)modules withDispatchGroup:(dispatch_group_t)dispatchGroup lazilyDiscovered:(BOOL)lazilyDiscovered { diff --git a/ReactCommon/fabric/graphics/platform/ios/Color.cpp b/ReactCommon/fabric/graphics/platform/ios/Color.cpp index f7100f98dcbc6a..dfde827886e203 100644 --- a/ReactCommon/fabric/graphics/platform/ios/Color.cpp +++ b/ReactCommon/fabric/graphics/platform/ios/Color.cpp @@ -6,6 +6,7 @@ */ #include "Color.h" +#include namespace facebook { namespace react { diff --git a/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm b/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm index 841f9256807139..c28bc30214e990 100644 --- a/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm +++ b/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm @@ -304,7 +304,7 @@ - (void)notifyAboutTurboModuleSetup:(const char *)name @"%@ has no setter or ivar for its bridge, which is not " "permitted. You must either @synthesize the bridge property, " "or provide your own setter method.", - RCTBridgeModuleNameForClass(strongModule)); + RCTBridgeModuleNameForClass([strongModule class])); } }