From 457627ed09e828f41f41e5939f853980fc0042fd Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Mon, 20 Apr 2026 10:25:53 -0700 Subject: [PATCH] Fix unused parameter warnings in TimerManager Summary: Fixed clang-diagnostic-unused-parameter warnings in TimerManager.cpp by commenting out the unused 'runtime' parameter names in two functions: - deleteTimer() at line 135 - deleteRecurringTimer() at line 152-153 Both functions accept a jsi::Runtime& parameter for API compatibility but don't use it internally. The fix maintains the function signatures while suppressing the warnings by commenting out the parameter names. Changelog: [Internal] Differential Revision: D101108602 --- .../react-native/ReactCommon/react/runtime/TimerManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/runtime/TimerManager.cpp b/packages/react-native/ReactCommon/react/runtime/TimerManager.cpp index f8e469da567c..ecb2a7f791eb 100644 --- a/packages/react-native/ReactCommon/react/runtime/TimerManager.cpp +++ b/packages/react-native/ReactCommon/react/runtime/TimerManager.cpp @@ -132,7 +132,9 @@ TimerHandle TimerManager::createRecurringTimer( return timerID; } -void TimerManager::deleteTimer(jsi::Runtime& runtime, TimerHandle timerHandle) { +void TimerManager::deleteTimer( + jsi::Runtime& /* runtime */, + TimerHandle timerHandle) { if (timerHandle < 0) { /** * Do nothing for negative values to match web spec. @@ -150,7 +152,7 @@ void TimerManager::deleteTimer(jsi::Runtime& runtime, TimerHandle timerHandle) { } void TimerManager::deleteRecurringTimer( - jsi::Runtime& runtime, + jsi::Runtime& /* runtime */, TimerHandle timerHandle) { if (timerHandle < 0) { /**