From ec3b5aac571cc14aca118b8042cff3fb7a514a81 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Mon, 24 Nov 2025 03:34:27 -0800 Subject: [PATCH] fix logging build for LayoutAnimation (#54618) Summary: changelog: [internal] When LAYOUT_ANIMATION_VERBOSE_LOGGING is enabled, build would fail. This fixes it Reviewed By: javache Differential Revision: D87474448 --- .../renderer/animations/LayoutAnimationKeyFrameManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp b/packages/react-native/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp index a71b4fb06a93a5..8abb96cfcb9765 100644 --- a/packages/react-native/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +++ b/packages/react-native/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp @@ -39,7 +39,7 @@ static std::string GetMutationInstructionString( ? mutation.newChildShadowView.tag : mutation.oldChildShadowView.tag; return getDebugName(mutation) + " [" + std::to_string(tag) + "]->[" + - std::to_string(mutation.parentShadowView.tag) + "] @" + + std::to_string(mutation.parentTag) + "] @" + std::to_string(mutation.index); } @@ -1162,7 +1162,7 @@ void LayoutAnimationKeyFrameManager::queueFinalMutationsForCompletedKeyFrame( const AnimationKeyFrame& keyframe, ShadowViewMutation::List& mutationsList, bool interrupted, - const std::string& /*logPrefix*/) const { + [[maybe_unused]] const std::string& logPrefix) const { if (!keyframe.finalMutationsForKeyFrame.empty()) { // TODO: modularize this segment, it is repeated 2x in KeyFrameManager // as well.