diff --git a/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp b/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp index f1d19a694d1..a7b014022e3 100644 --- a/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +++ b/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp @@ -159,7 +159,7 @@ TEST_F(RuntimeSchedulerTest, taskExpiration) { } TEST_F(RuntimeSchedulerTest, scheduleTwoTasksWithSamePriority) { - uint firstTaskCallOrder; + uint firstTaskCallOrder = 0; auto callbackOne = createHostFunctionFromLambda([this, &firstTaskCallOrder](bool) { firstTaskCallOrder = hostFunctionCallCount_; @@ -192,7 +192,7 @@ TEST_F(RuntimeSchedulerTest, scheduleTwoTasksWithSamePriority) { } TEST_F(RuntimeSchedulerTest, scheduleTwoTasksWithDifferentPriorities) { - uint lowPriorityTaskCallOrder; + uint lowPriorityTaskCallOrder = 0; auto callbackOne = createHostFunctionFromLambda([this, &lowPriorityTaskCallOrder](bool) { lowPriorityTaskCallOrder = hostFunctionCallCount_; diff --git a/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h b/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h index a209474d8e7..e81fb065c9e 100644 --- a/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +++ b/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h @@ -7,6 +7,7 @@ #pragma once +#include #include class StubQueue {