From dc17e128a1359011b74debde994e8f5993a00e85 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 13 Nov 2025 13:56:02 -0800 Subject: [PATCH] Remove unused exception parameter from js/react-native-github/packages/react-native/React/CxxModule/RCTCxxUtils.mm Summary: `-Wunused-exception-parameter` has identified an unused exception parameter. This diff removes it. This: ``` try { ... } catch (exception& e) { // no use of e } ``` should instead be written as ``` } catch (exception&) { ``` If the code compiles, this is safe to land. Differential Revision: D85813832 --- .../core/platform/ios/ReactCommon/RCTTurboModuleManager.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm index ed2c1b48a5c153..01460b9a28b8bc 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm @@ -694,7 +694,7 @@ - (BOOL)_shouldCreateObjCModule:(Class)moduleClass } else if (_bridgeProxy) { [(id)module setValue:_bridgeProxy forKey:@"bridge"]; } - } @catch (NSException *exception) { + } @catch (NSException *) { RCTLogError( @"%@ has no setter or ivar for its bridge, which is not " "permitted. You must either @synthesize the bridge property, " @@ -742,7 +742,7 @@ - (BOOL)_shouldCreateObjCModule:(Class)moduleClass @try { [(id)module setValue:methodQueue forKey:@"methodQueue"]; - } @catch (NSException *exception) { + } @catch (NSException *) { RCTLogError( @"%@ has no setter or ivar for its methodQueue, which is not " "permitted. You must either @synthesize the methodQueue property, "