From d81e5492974e831aba06e435e2b0504a680a20f8 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Wed, 9 Aug 2017 04:08:06 -0700 Subject: [PATCH] Fix format specifier used in RCTUIManager Summary: Here, `reactTag` is an `NSNumber *` which uses `%@` as the format specifier. Newer versions of clang can warn or error on this. This change prevents that from happening. See also #15402 Local builds with clang 5. Closes https://github.com/facebook/react-native/pull/15414 Differential Revision: D5583703 Pulled By: javache fbshipit-source-id: a6d0d2246725cd096b1f3cd062ab5924740ab76c --- React/Modules/RCTUIManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index e15e9e8db1c574..4a6724c41c7e06 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -1421,7 +1421,7 @@ static void RCTMeasureLayout(RCTShadowView *view, [self addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary *viewRegistry) { _jsResponder = viewRegistry[reactTag]; if (!_jsResponder) { - RCTLogError(@"Invalid view set to be the JS responder - tag %zd", reactTag); + RCTLogError(@"Invalid view set to be the JS responder - tag %@", reactTag); } }]; }