Skip to content

Commit 5596077

Browse files
christophpurrermeta-codesync[bot]
authored andcommitted
Fix unused parameter warnings in HostPlatformViewTraitsInitializer.h (#56491)
Summary: Pull Request resolved: #56491 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 Differential Revision: D101108434
1 parent 68debb2 commit 5596077

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)