From 29070bfb4bb4b9fca7c7125948283cb77532c2fd Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Fri, 17 Apr 2026 18:16:46 -0700 Subject: [PATCH] Fix unused parameter warnings in NativeFantomTestSpecificMethods.cpp Summary: Fixed clang-diagnostic-unused-parameter warnings by commenting out unused parameters in the takeFunctionAndNoop method. This method appears to be a no-op function that takes a callback but doesn't use it, likely for testing purposes. Differential Revision: D101108571 --- .../NativeFantomTestSpecificMethods.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.cpp b/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.cpp index a3ac0b0effee..4f371f697354 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.cpp +++ b/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.cpp @@ -46,8 +46,8 @@ void NativeFantomTestSpecificMethods::registerForcedCloneCommitHook( } void NativeFantomTestSpecificMethods::takeFunctionAndNoop( - jsi::Runtime& runtime, - jsi::Function function) {} + jsi::Runtime& /* runtime */, + jsi::Function /* callback */) {} void NativeFantomTestSpecificMethods::setRootNodeSize( jsi::Runtime& runtime,