diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-07-18 11:27:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 11:27:07 (GMT) |
commit | aab497a6312a9d8434a7dc7b5a593713fc8fbce0 (patch) | |
tree | 018a95afb94dd103dcbef98e4a383382a52968bf /src/H5mpi.c | |
parent | 919ce7adc2f24414b749c2a6880da00259350881 (diff) | |
download | hdf5-aab497a6312a9d8434a7dc7b5a593713fc8fbce0.zip hdf5-aab497a6312a9d8434a7dc7b5a593713fc8fbce0.tar.gz hdf5-aab497a6312a9d8434a7dc7b5a593713fc8fbce0.tar.bz2 |
Fix some warnings in developer builds (#3247)
* Fix some warnings in developer builds
* Switch approach to Winline flag
Diffstat (limited to 'src/H5mpi.c')
-rw-r--r-- | src/H5mpi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5mpi.c b/src/H5mpi.c index 4a4287d..12f635c 100644 --- a/src/H5mpi.c +++ b/src/H5mpi.c @@ -66,7 +66,7 @@ H5_mpi_set_bigio_count(hsize_t new_count) * *------------------------------------------------------------------------- */ -hsize_t +H5_ATTR_PURE hsize_t H5_mpi_get_bigio_count(void) { return bigio_count_g; @@ -795,6 +795,7 @@ H5_mpio_get_file_sync_required(MPI_File fh, hbool_t *file_sync_required) { MPI_Info info_used; int flag; + char *sync_env_var; char value[MPI_MAX_INFO_VAL]; herr_t ret_value = SUCCEED; @@ -818,7 +819,7 @@ H5_mpio_get_file_sync_required(MPI_File fh, hbool_t *file_sync_required) HGOTO_ERROR(H5E_LIB, H5E_CANTFREE, FAIL, "can't free MPI info") /* Force setting the flag via env variable (temp solution before the flag is implemented in MPI) */ - char *sync_env_var = HDgetenv("HDF5_DO_MPI_FILE_SYNC"); + sync_env_var = HDgetenv("HDF5_DO_MPI_FILE_SYNC"); if (sync_env_var && (!HDstrcmp(sync_env_var, "TRUE") || !HDstrcmp(sync_env_var, "1"))) *file_sync_required = TRUE; if (sync_env_var && (!HDstrcmp(sync_env_var, "FALSE") || !HDstrcmp(sync_env_var, "0"))) |