1
1

lustre: squash some compiler warnings

Compiling OMPI on cray systems using latest Cray compilers (clang based)
yielded some compiler warnings from ompio/lustre.  Squash these warnings.

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
(cherry picked from commit e66a7cef11c51f64b7766080e1cef34b1395c4da)
Signed-off-by: Geoffrey Paulsen <gpaulsen@us.ibm.com>
Этот коммит содержится в:
Howard Pritchard 2019-11-21 14:14:40 -06:00 коммит произвёл Geoffrey Paulsen
родитель dc8246b8ae
Коммит e06595d7f6
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -92,7 +92,7 @@ mca_fs_lustre_component_file_query (ompio_file_t *fh, int *priority)
if (!tmp) { if (!tmp) {
/* The communicator might be NULL if we only want to delete the file */ /* The communicator might be NULL if we only want to delete the file */
if (OMPIO_ROOT == fh->f_rank || MPI_COMM_NULL == fh->f_comm) { if (OMPIO_ROOT == fh->f_rank || MPI_COMM_NULL == fh->f_comm) {
fh->f_fstype = mca_fs_base_get_fstype ( fh->f_filename ); fh->f_fstype = mca_fs_base_get_fstype ( (char *)fh->f_filename );
} }
if (fh->f_comm != MPI_COMM_NULL) { if (fh->f_comm != MPI_COMM_NULL) {
fh->f_comm->c_coll->coll_bcast (&(fh->f_fstype), fh->f_comm->c_coll->coll_bcast (&(fh->f_fstype),

Просмотреть файл

@ -34,11 +34,11 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
static void *alloc_lum(); static void *alloc_lum(void);
static void *alloc_lum() static void *alloc_lum(void)
{ {
int v1, v3, join; int v1, v3;
v1 = sizeof(struct lov_user_md_v1) + v1 = sizeof(struct lov_user_md_v1) +
LOV_MAX_STRIPE_COUNT * sizeof(struct lov_user_ost_data_v1); LOV_MAX_STRIPE_COUNT * sizeof(struct lov_user_ost_data_v1);