Explorar o código

fix coverity warning

Samuel Thibault %!s(int64=5) %!d(string=hai) anos
pai
achega
79d11026f8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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));