Skip to content

Commit 5620b1b

Browse files
christophpurrermeta-codesync[bot]
authored andcommitted
Fix unused parameter warnings in conversions.h (facebook#56472)
Summary: Pull Request resolved: facebook#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 fbshipit-source-id: 34da8573326c1ebc11dad01104f8857a21c0adc5
1 parent d2af787 commit 5620b1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/react-native/ReactCommon/react/renderer/components/image

packages/react-native/ReactCommon/react/renderer/components/image/conversions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace facebook::react {
1919

20-
inline void fromRawValue(const PropsParserContext &context, const RawValue &value, ImageSource &result)
20+
inline void fromRawValue(const PropsParserContext & /* context */, const RawValue &value, ImageSource &result)
2121
{
2222
if (value.hasType<std::string>()) {
2323
result = {
@@ -116,7 +116,7 @@ inline std::string toString(const ImageSource &value)
116116
return "{uri: " + value.uri + "}";
117117
}
118118

119-
inline void fromRawValue(const PropsParserContext &context, const RawValue &value, ImageResizeMode &result)
119+
inline void fromRawValue(const PropsParserContext & /* context */, const RawValue &value, ImageResizeMode &result)
120120
{
121121
react_native_expect(value.hasType<std::string>());
122122
if (!value.hasType<std::string>()) {

0 commit comments

Comments
 (0)