From e66a7cef11c51f64b7766080e1cef34b1395c4da Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Thu, 21 Nov 2019 14:14:40 -0600 Subject: [PATCH] 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 --- ompi/mca/fs/lustre/fs_lustre.c | 2 +- ompi/mca/fs/lustre/fs_lustre_file_open.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ompi/mca/fs/lustre/fs_lustre.c b/ompi/mca/fs/lustre/fs_lustre.c index e2aad6fa2f..df2c7c3ac7 100644 --- a/ompi/mca/fs/lustre/fs_lustre.c +++ b/ompi/mca/fs/lustre/fs_lustre.c @@ -92,7 +92,7 @@ mca_fs_lustre_component_file_query (ompio_file_t *fh, int *priority) if (!tmp) { /* 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) { - 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) { fh->f_comm->c_coll->coll_bcast (&(fh->f_fstype), diff --git a/ompi/mca/fs/lustre/fs_lustre_file_open.c b/ompi/mca/fs/lustre/fs_lustre_file_open.c index 1baf6a159b..6dc996caf3 100644 --- a/ompi/mca/fs/lustre/fs_lustre_file_open.c +++ b/ompi/mca/fs/lustre/fs_lustre_file_open.c @@ -34,11 +34,11 @@ #include -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) + LOV_MAX_STRIPE_COUNT * sizeof(struct lov_user_ost_data_v1);