瀏覽代碼

Fix warning

Samuel Thibault 5 年之前
父節點
當前提交
75e1012825
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/sched_policies/component_best_implementation.c

+ 2 - 1
src/sched_policies/component_best_implementation.c

@@ -34,7 +34,8 @@ static int find_best_impl(unsigned sched_ctx_id, struct starpu_task * task, int
 	if (!task->cl->model)
 	{
 		/* No perfmodel, first available will be fine */
-		starpu_worker_can_execute_task_first_impl(workerid, task, &impl);
+		int can_execute = starpu_worker_can_execute_task_first_impl(workerid, task, &impl);
+		STARPU_ASSERT(can_execute);
 		best_impl = impl;
 		len = 0.0;
 	}