From 3d981f3f771dda5051bd33986676950cb0f9a08b Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Tue, 21 Apr 2026 21:22:08 -0700 Subject: [PATCH] Fix unused parameter warnings in NativeFantomTestSpecificMethods.cpp (#56492) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56492 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. Changelog: [Internal] Reviewed By: cortinico 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,