File tree Expand file tree Collapse file tree 8 files changed +13
-11
lines changed
packages/react-native/ReactCommon/react
nativemodule/core/platform/android/ReactCommon Expand file tree Collapse file tree 8 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace facebook::react {
13
13
14
14
template <>
15
15
struct Bridging <bool > {
16
- static bool fromJs (jsi::Runtime&, const jsi::Value& value) {
16
+ static bool fromJs (jsi::Runtime& /* unused */ , const jsi::Value& value) {
17
17
return value.asBool ();
18
18
}
19
19
Original file line number Diff line number Diff line change @@ -86,12 +86,12 @@ JSReturnT callFromJs(
86
86
}
87
87
88
88
template <typename ReturnT, typename ... ArgsT>
89
- constexpr size_t getParameterCount (ReturnT (*)(ArgsT...)) {
89
+ constexpr size_t getParameterCount (ReturnT (* /* unused */ )(ArgsT...)) {
90
90
return sizeof ...(ArgsT);
91
91
}
92
92
93
93
template <typename Class, typename ReturnT, typename ... ArgsT>
94
- constexpr size_t getParameterCount (ReturnT (Class::*)(ArgsT...)) {
94
+ constexpr size_t getParameterCount (ReturnT (Class::* /* unused */ )(ArgsT...)) {
95
95
return sizeof ...(ArgsT);
96
96
}
97
97
Original file line number Diff line number Diff line change @@ -179,7 +179,8 @@ class SyncCallback<R(Args...)> {
179
179
}
180
180
181
181
template <size_t ... Index>
182
- R apply (std::tuple<Args...>&& args, std::index_sequence<Index...>) const {
182
+ R apply (std::tuple<Args...>&& args, std::index_sequence<Index...> /* unused*/ )
183
+ const {
183
184
return call (std::move (std::get<Index>(args))...);
184
185
}
185
186
@@ -262,7 +263,7 @@ struct Bridging<std::function<R(Args...)>> {
262
263
jsi::Runtime& rt,
263
264
const jsi::Value* args,
264
265
const std::shared_ptr<CallInvoker>& jsInvoker,
265
- std::index_sequence<Index...>) {
266
+ std::index_sequence<Index...> /* unused */ ) {
266
267
return fn (bridging::fromJs<Args>(rt, args[Index], jsInvoker)...);
267
268
}
268
269
};
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ struct Bridging<std::nullptr_t> {
24
24
}
25
25
}
26
26
27
- static std::nullptr_t toJs (jsi::Runtime&, std::nullptr_t ) {
27
+ static std::nullptr_t toJs (jsi::Runtime& /* unused */ , std::nullptr_t ) {
28
28
return nullptr ;
29
29
}
30
30
};
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ class JSI_EXPORT JavaTurboModule : public TurboModule {
53
53
protected:
54
54
void configureEventEmitterCallback ();
55
55
56
- [[deprecated]] void setEventEmitterCallback (jni::alias_ref<jobject>) {
56
+ [[deprecated]] void setEventEmitterCallback (
57
+ jni::alias_ref<jobject> /* unused*/ ) {
57
58
configureEventEmitterCallback ();
58
59
}
59
60
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ class ParagraphAttributes : public DebugStringConvertible {
82
82
*/
83
83
std::optional<TextAlignmentVertical> textAlignVertical{};
84
84
85
- bool operator ==(const ParagraphAttributes&) const ;
86
- bool operator !=(const ParagraphAttributes&) const ;
85
+ bool operator ==(const ParagraphAttributes& rhs ) const ;
86
+ bool operator !=(const ParagraphAttributes& rhs ) const ;
87
87
88
88
#pragma mark - DebugStringConvertible
89
89
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ inline void fromRawValue(
233
233
}
234
234
235
235
inline void fromRawValue (
236
- const PropsParserContext&,
236
+ const PropsParserContext& /* unused */ ,
237
237
const RawValue& value,
238
238
AccessibilityValue& result) {
239
239
auto map = (std::unordered_map<std::string, RawValue>)value;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class CSSValueParser {
34
34
template <CSSDataType... AllowedTypesT>
35
35
constexpr std::variant<std::monostate, AllowedTypesT...> consumeValue (
36
36
CSSDelimiter delimeter,
37
- CSSCompoundDataType<AllowedTypesT...>) {
37
+ CSSCompoundDataType<AllowedTypesT...> /* unused */ ) {
38
38
using ReturnT = std::variant<std::monostate, AllowedTypesT...>;
39
39
40
40
auto consumedValue =
You can’t perform that action at this time.
0 commit comments