mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix unused parameter warning in propsConversions.h (#56500)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56500 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. Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D101111638 fbshipit-source-id: dd842db66917fe68878ddcc9d364ba3f7455a641
This commit is contained in:
1 parent
cb99ee89c7
commit
d65511474f
7 files changed
+13
-13
No files matched your search
@@ -1012,8 +1012,6 @@ folly::dynamic facebook::react::toDynamic(const std::vector<T>& arrayValue);
|
||||
template <typename T>
|
||||
jni::local_ref<jni::JWeakReference<T>> facebook::react::makeJWeakReference(jni::alias_ref<T> ref);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result, T defaultValue);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::optional<T>& result);
|
||||
@@ -1021,6 +1019,8 @@ template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<T>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<std::vector<T>>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext&, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename TManager>
|
||||
std::shared_ptr<TManager> facebook::react::getManagerByName(std::shared_ptr<const facebook::react::ContextContainer>& contextContainer, const char name[]);
|
||||
uint8_t facebook::react::alphaFromColor(facebook::react::SharedColor color) noexcept;
|
||||
|
||||
@@ -1012,8 +1012,6 @@ folly::dynamic facebook::react::toDynamic(const std::vector<T>& arrayValue);
|
||||
template <typename T>
|
||||
jni::local_ref<jni::JWeakReference<T>> facebook::react::makeJWeakReference(jni::alias_ref<T> ref);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result, T defaultValue);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::optional<T>& result);
|
||||
@@ -1021,6 +1019,8 @@ template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<T>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<std::vector<T>>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext&, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename TManager>
|
||||
std::shared_ptr<TManager> facebook::react::getManagerByName(std::shared_ptr<const facebook::react::ContextContainer>& contextContainer, const char name[]);
|
||||
uint8_t facebook::react::alphaFromColor(facebook::react::SharedColor color) noexcept;
|
||||
|
||||
@@ -4203,8 +4203,6 @@ bool facebook::react::floatEquality(T a, T b, T epsilon = static_cast<T>(faceboo
|
||||
template <typename T>
|
||||
facebook::react::ModuleConstants<T> facebook::react::typedConstants(typename T::Builder::Input&& value);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result, T defaultValue);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::optional<T>& result);
|
||||
@@ -4212,6 +4210,8 @@ template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<T>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<std::vector<T>>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext&, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename TManager>
|
||||
std::shared_ptr<TManager> facebook::react::getManagerByName(std::shared_ptr<const facebook::react::ContextContainer>& contextContainer, const char name[]);
|
||||
uint8_t facebook::react::alphaFromColor(facebook::react::SharedColor color) noexcept;
|
||||
|
||||
@@ -4203,8 +4203,6 @@ bool facebook::react::floatEquality(T a, T b, T epsilon = static_cast<T>(faceboo
|
||||
template <typename T>
|
||||
facebook::react::ModuleConstants<T> facebook::react::typedConstants(typename T::Builder::Input&& value);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result, T defaultValue);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::optional<T>& result);
|
||||
@@ -4212,6 +4210,8 @@ template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<T>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<std::vector<T>>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext&, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename TManager>
|
||||
std::shared_ptr<TManager> facebook::react::getManagerByName(std::shared_ptr<const facebook::react::ContextContainer>& contextContainer, const char name[]);
|
||||
uint8_t facebook::react::alphaFromColor(facebook::react::SharedColor color) noexcept;
|
||||
|
||||
@@ -581,8 +581,6 @@ T facebook::react::get(const std::unique_ptr<facebook::react::AnimatedPropBase>&
|
||||
template <typename T>
|
||||
bool facebook::react::floatEquality(T a, T b, T epsilon = static_cast<T>(facebook::react::kDefaultEpsilon));
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result, T defaultValue);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::optional<T>& result);
|
||||
@@ -590,6 +588,8 @@ template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<T>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<std::vector<T>>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext&, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename TManager>
|
||||
std::shared_ptr<TManager> facebook::react::getManagerByName(std::shared_ptr<const facebook::react::ContextContainer>& contextContainer, const char name[]);
|
||||
uint8_t facebook::react::alphaFromColor(facebook::react::SharedColor color) noexcept;
|
||||
|
||||
@@ -581,8 +581,6 @@ T facebook::react::get(const std::unique_ptr<facebook::react::AnimatedPropBase>&
|
||||
template <typename T>
|
||||
bool facebook::react::floatEquality(T a, T b, T epsilon = static_cast<T>(facebook::react::kDefaultEpsilon));
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, T& result, T defaultValue);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::optional<T>& result);
|
||||
@@ -590,6 +588,8 @@ template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<T>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext& context, const facebook::react::RawValue& rawValue, std::vector<std::vector<T>>& result);
|
||||
template <typename T>
|
||||
void facebook::react::fromRawValue(const facebook::react::PropsParserContext&, const facebook::react::RawValue& rawValue, T& result);
|
||||
template <typename TManager>
|
||||
std::shared_ptr<TManager> facebook::react::getManagerByName(std::shared_ptr<const facebook::react::ContextContainer>& contextContainer, const char name[]);
|
||||
uint8_t facebook::react::alphaFromColor(facebook::react::SharedColor color) noexcept;
|
||||
|
||||
Reference in new issue
Block a user