From a9add812b5457a413e1c7370db7bcb0f6c7b7a06 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Sun, 19 Apr 2026 18:25:12 -0700 Subject: [PATCH] Fix unused parameter warnings in HostPlatformViewTraitsInitializer.h (#56491) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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 --- .../components/view/HostPlatformViewTraitsInitializer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/platform/cxx/react/renderer/components/view/HostPlatformViewTraitsInitializer.h b/packages/react-native/ReactCommon/react/renderer/components/view/platform/cxx/react/renderer/components/view/HostPlatformViewTraitsInitializer.h index a423f3192a6b..032e6377aaf6 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/platform/cxx/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +++ b/packages/react-native/ReactCommon/react/renderer/components/view/platform/cxx/react/renderer/components/view/HostPlatformViewTraitsInitializer.h @@ -12,12 +12,12 @@ namespace facebook::react::HostPlatformViewTraitsInitializer { -inline bool formsStackingContext(const ViewProps &props) +inline bool formsStackingContext(const ViewProps & /*props*/) { return false; } -inline bool formsView(const ViewProps &props) +inline bool formsView(const ViewProps & /*props*/) { return false; }