浏览代码

mpi: fix starpu_mpi_datatype_unregister() return value

Although this function should be void, this has the advantage to
not add warnings if someone check the return value.
Samuel Pitoiset 10 年之前
父节点
当前提交
34070986d4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mpi/src/starpu_mpi_datatype.c

+ 1 - 0
mpi/src/starpu_mpi_datatype.c

@@ -333,4 +333,5 @@ int starpu_mpi_datatype_unregister(starpu_data_handle_t handle)
 		free(table);
 		free(table);
 	}
 	}
 	STARPU_PTHREAD_MUTEX_UNLOCK(&_starpu_mpi_datatype_funcs_table_mutex);
 	STARPU_PTHREAD_MUTEX_UNLOCK(&_starpu_mpi_datatype_funcs_table_mutex);
+	return 0;
 }
 }