From 39283b7e5bae303e65b9b048456398f8a39e1b96 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Fri, 17 Apr 2026 16:07:00 -0700 Subject: [PATCH] Fix unused parameter warnings in conversions.h (#56472) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56472 Fix clang-diagnostic-unused-parameter warnings by commenting out the unused 'context' parameter in two fromRawValue functions. This maintains API compatibility while resolving the lint warnings. Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D101108449 --- .../ReactCommon/react/renderer/components/image/conversions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/components/image/conversions.h b/packages/react-native/ReactCommon/react/renderer/components/image/conversions.h index 17f1996fff22..902a99949d8b 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/image/conversions.h +++ b/packages/react-native/ReactCommon/react/renderer/components/image/conversions.h @@ -17,7 +17,7 @@ namespace facebook::react { -inline void fromRawValue(const PropsParserContext &context, const RawValue &value, ImageSource &result) +inline void fromRawValue(const PropsParserContext & /* context */, const RawValue &value, ImageSource &result) { if (value.hasType()) { result = { @@ -116,7 +116,7 @@ inline std::string toString(const ImageSource &value) return "{uri: " + value.uri + "}"; } -inline void fromRawValue(const PropsParserContext &context, const RawValue &value, ImageResizeMode &result) +inline void fromRawValue(const PropsParserContext & /* context */, const RawValue &value, ImageResizeMode &result) { react_native_expect(value.hasType()); if (!value.hasType()) {