Skip to content

Commit 58bc6c3

Browse files
Yannick Loriotmeta-codesync[bot]
authored andcommitted
Fix unused exception parameter compile error in RCTUIManager catch block
Summary: In some configurations the errors might be stripped out and leading toward those kind of issues: ``` stderr: xplat/js/react-native-github/packages/react-native/React/Modules/RCTUIManager.mm:1251:28: error: unused exception parameter 'exception' [-Werror,-Wunused-exception-parameter] 1251 | } catch (NSException \*exception) { | ^\~\~\~\~\~\~\~\~ 1 error generated. ``` So marking the param as potentially unused. ## Changelog: - [iOS] [Fixed] - Fix unused exception parameter compile error in RCTUIManager catch block in certain build mode Reviewed By: lodhaayush Differential Revision: D90192993 fbshipit-source-id: bd17fc04941ac55e529e6d851632a5febdc1c76e
1 parent c295ec2 commit 58bc6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/React/Modules/RCTUIManager.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ - (void)flushUIBlocksWithCompletion:(void (^)(void))completion
12481248
[[RCTComposedViewRegistry alloc] initWithUIManager:strongSelf andRegistry:strongSelf->_viewRegistry];
12491249
block(strongSelf, composedViewRegistry);
12501250
}
1251-
} @catch (NSException *exception) {
1251+
} @catch (NSException *__unused exception) {
12521252
RCTLogError(@"Exception thrown while executing UI block: %@", exception);
12531253
}
12541254
};

0 commit comments

Comments
 (0)