瀏覽代碼

fix coverity warning

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

+ 2 - 1
src/profiling/profiling_helpers.c

@@ -99,8 +99,9 @@ void _starpu_profiling_worker_helper_display_summary(FILE *stream)
 	for (workerid = 0; workerid < worker_cnt; workerid++)
 	{
 		struct starpu_profiling_worker_info info;
-		starpu_profiling_worker_get_info(workerid, &info);
+		int ret = starpu_profiling_worker_get_info(workerid, &info);
 		char name[64];
+		STARPU_ASSERT(!ret);
 
 		starpu_worker_get_name(workerid, name, sizeof(name));