From d91869b0e0b5ff56f506363b735608c912d31964 Mon Sep 17 00:00:00 2001 From: Akash Patel <17132214+acxz@users.noreply.github.com> Date: Tue, 5 Oct 2021 11:40:53 -0400 Subject: [PATCH] resolve maybe uninitialized error --- src/ray/common/task/task_spec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ray/common/task/task_spec.h b/src/ray/common/task/task_spec.h index 7ec1480c3fa66..24dbf4afbae21 100644 --- a/src/ray/common/task/task_spec.h +++ b/src/ray/common/task/task_spec.h @@ -254,7 +254,7 @@ class TaskSpecification : public MessageWrapper { /// Field storing required placement resources. Initialized in constructor. std::shared_ptr required_placement_resources_; /// Cached scheduling class of this task. - SchedulingClass sched_cls_id_; + SchedulingClass sched_cls_id_ = 0; /// Below static fields could be mutated in `ComputeResources` concurrently due to /// multi-threading, we need a mutex to protect it.