Skip to content

Commit 9ccaaed

Browse files
Fix unused parameter warning in propsConversions.h
Summary: Fixed clang-diagnostic-unused-parameter warning in React Native's propsConversions.h by commenting out the unused `context` parameter in the `fromRawValue` template function. This change maintains API compatibility while resolving the compiler warning. Differential Revision: D101111638
1 parent 68debb2 commit 9ccaaed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/ReactCommon/react/renderer/core/propsConversions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void fromRawValue(const PropsParserContext &context, const RawValue &rawValue, T
101101
}
102102

103103
template <typename T>
104-
void fromRawValue(const PropsParserContext &context, const RawValue &rawValue, T &result)
104+
void fromRawValue(const PropsParserContext & /* context */, const RawValue &rawValue, T &result)
105105
{
106106
result = (T)rawValue;
107107
}

0 commit comments

Comments
 (0)