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
This commit is contained in:
Yannick Loriot authored and meta-codesync[bot] committed 2026-01-06 16:42:12 -08:00
1 parent c295ec2261
commit 58bc6c3e38
1 file changed
+1 -1
@@ -1248,7 +1248,7 @@ RCT_EXPORT_METHOD(
[[RCTComposedViewRegistry alloc] initWithUIManager:strongSelf andRegistry:strongSelf->_viewRegistry];
block(strongSelf, composedViewRegistry);
}
} @catch (NSException *exception) {
} @catch (NSException *__unused exception) {
RCTLogError(@"Exception thrown while executing UI block: %@", exception);
}
};