Skip to content

Commit 2a4b38c

Browse files
Fix unused parameter warnings in HostPlatformViewTraitsInitializer.h (#56491)
Summary: Fixed clang-diagnostic-unused-parameter warnings in HostPlatformViewTraitsInitializer.h by commenting out unused parameter names while maintaining API compatibility. Changes: - `formsStackingContext`: Commented out unused 'props' parameter - `formsView`: Commented out unused 'props' parameter - `isKeyboardFocusable`: Already had parameter commented out correctly Changelog: [Internal] Reviewed By: zeyap Differential Revision: D101108434
1 parent 084456e commit 2a4b38c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/react-native/ReactCommon/react/renderer/components/view/platform/cxx/react/renderer/components/view/HostPlatformViewTraitsInitializer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
namespace facebook::react::HostPlatformViewTraitsInitializer {
1414

15-
inline bool formsStackingContext(const ViewProps &props)
15+
inline bool formsStackingContext(const ViewProps & /*props*/)
1616
{
1717
return false;
1818
}
1919

20-
inline bool formsView(const ViewProps &props)
20+
inline bool formsView(const ViewProps & /*props*/)
2121
{
2222
return false;
2323
}

0 commit comments

Comments
 (0)