Skip to content

Commit 8721ee0

Browse files
maxovtsinfacebook-github-bot
authored andcommitted
Get ReactiveNative compiled with Clang 10 (#28362)
Summary: Pull Request resolved: #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
1 parent 0952e4b commit 8721ee0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

React/CxxBridge/RCTCxxBridge.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ - (void)registerExtraLazyModules
777777
#endif
778778
}
779779

780-
- (NSArray<RCTModuleData *> *)_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules
780+
- (NSArray<RCTModuleData *> *)_initializeModules:(NSArray<Class> *)modules
781781
withDispatchGroup:(dispatch_group_t)dispatchGroup
782782
lazilyDiscovered:(BOOL)lazilyDiscovered
783783
{

ReactCommon/fabric/graphics/platform/ios/Color.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#include "Color.h"
9+
#include <cassert>
910

1011
namespace facebook {
1112
namespace react {

ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ - (void)notifyAboutTurboModuleSetup:(const char *)name
308308
@"%@ has no setter or ivar for its bridge, which is not "
309309
"permitted. You must either @synthesize the bridge property, "
310310
"or provide your own setter method.",
311-
RCTBridgeModuleNameForClass(strongModule));
311+
RCTBridgeModuleNameForClass([strongModule class]));
312312
}
313313

314314
[performanceLogger attachRCTBridgeToRCTTurboModuleEnd:moduleName];

0 commit comments

Comments
 (0)