Adds 'unused' hints for MDS io_info parameters (#2301)

* Adds 'unused' hints for MDS io_info parameters

* Committing clang-format changes

* Fix issue with formatter

* Committing clang-format changes

* Final fix for formatter

* Committing clang-format changes

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Dana Robinson 2022-12-14 14:54:51 -08:00 committed by GitHub
parent a1c81eda20
commit 93938b3a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 18 deletions

View File

@ -2456,8 +2456,8 @@ done:
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
htri_t htri_t
H5D__chunk_cacheable(const H5D_io_info_t *io_info, H5D_dset_io_info_t *dset_info, haddr_t caddr, H5D__chunk_cacheable(const H5D_io_info_t H5_ATTR_PARALLEL_USED *io_info, H5D_dset_io_info_t *dset_info,
hbool_t write_op) haddr_t caddr, hbool_t write_op)
{ {
const H5D_t *dataset = NULL; /* Local pointer to dataset info */ const H5D_t *dataset = NULL; /* Local pointer to dataset info */
hbool_t has_filters = FALSE; /* Whether there are filters on the chunk or not */ hbool_t has_filters = FALSE; /* Whether there are filters on the chunk or not */
@ -2466,7 +2466,6 @@ H5D__chunk_cacheable(const H5D_io_info_t *io_info, H5D_dset_io_info_t *dset_info
FUNC_ENTER_PACKAGE FUNC_ENTER_PACKAGE
/* Sanity check */ /* Sanity check */
HDassert(io_info);
HDassert(dset_info); HDassert(dset_info);
dataset = dset_info->dset; dataset = dset_info->dset;
HDassert(dataset); HDassert(dataset);
@ -4266,8 +4265,8 @@ done:
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
static void * static void *
H5D__chunk_lock(const H5D_io_info_t *io_info, const H5D_dset_io_info_t *dset_info, H5D_chunk_ud_t *udata, H5D__chunk_lock(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, const H5D_dset_io_info_t *dset_info,
hbool_t relax, hbool_t prev_unfilt_chunk) H5D_chunk_ud_t *udata, hbool_t relax, hbool_t prev_unfilt_chunk)
{ {
const H5D_t *dset; /* Convenience pointer to the dataset */ const H5D_t *dset; /* Convenience pointer to the dataset */
H5O_pline_t *pline; /* I/O pipeline info - always equal to the pline passed to H5D__chunk_mem_alloc */ H5O_pline_t *pline; /* I/O pipeline info - always equal to the pline passed to H5D__chunk_mem_alloc */
@ -4674,7 +4673,7 @@ done:
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
static herr_t static herr_t
H5D__chunk_unlock(const H5D_io_info_t *io_info, const H5D_dset_io_info_t *dset_info, H5D__chunk_unlock(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, const H5D_dset_io_info_t *dset_info,
const H5D_chunk_ud_t *udata, hbool_t dirty, void *chunk, uint32_t naccessed) const H5D_chunk_ud_t *udata, hbool_t dirty, void *chunk, uint32_t naccessed)
{ {
const H5O_layout_t *layout; /* Dataset layout */ const H5O_layout_t *layout; /* Dataset layout */
@ -7453,10 +7452,10 @@ done:
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
static ssize_t static ssize_t
H5D__nonexistent_readvv(const H5D_io_info_t *io_info, const H5D_dset_io_info_t *dset_info, H5D__nonexistent_readvv(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info,
size_t chunk_max_nseq, size_t *chunk_curr_seq, size_t chunk_len_arr[], const H5D_dset_io_info_t *dset_info, size_t chunk_max_nseq, size_t *chunk_curr_seq,
hsize_t chunk_off_arr[], size_t mem_max_nseq, size_t *mem_curr_seq, size_t chunk_len_arr[], hsize_t chunk_off_arr[], size_t mem_max_nseq,
size_t mem_len_arr[], hsize_t mem_off_arr[]) size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_off_arr[])
{ {
H5D_chunk_readvv_ud_t udata; /* User data for H5VM_opvv() operator */ H5D_chunk_readvv_ud_t udata; /* User data for H5VM_opvv() operator */
ssize_t ret_value = -1; /* Return value */ ssize_t ret_value = -1; /* Return value */

View File

@ -441,9 +441,9 @@ done:
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
static ssize_t static ssize_t
H5D__efl_readvv(const H5D_io_info_t *io_info, const H5D_dset_io_info_t *dset_info, size_t dset_max_nseq, H5D__efl_readvv(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, const H5D_dset_io_info_t *dset_info,
size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_off_arr[], size_t mem_max_nseq, size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_off_arr[],
size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_off_arr[]) size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_off_arr[])
{ {
H5D_efl_readvv_ud_t udata; /* User data for H5VM_opvv() operator */ H5D_efl_readvv_ud_t udata; /* User data for H5VM_opvv() operator */
ssize_t ret_value = -1; /* Return value (Total size of sequence in bytes) */ ssize_t ret_value = -1; /* Return value (Total size of sequence in bytes) */
@ -522,9 +522,9 @@ done:
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
static ssize_t static ssize_t
H5D__efl_writevv(const H5D_io_info_t *io_info, const H5D_dset_io_info_t *dset_info, size_t dset_max_nseq, H5D__efl_writevv(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, const H5D_dset_io_info_t *dset_info,
size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_off_arr[], size_t mem_max_nseq, size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_off_arr[],
size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_off_arr[]) size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_off_arr[])
{ {
H5D_efl_writevv_ud_t udata; /* User data for H5VM_opvv() operator */ H5D_efl_writevv_ud_t udata; /* User data for H5VM_opvv() operator */
ssize_t ret_value = -1; /* Return value (Total size of sequence in bytes) */ ssize_t ret_value = -1; /* Return value (Total size of sequence in bytes) */

View File

@ -2785,7 +2785,7 @@ done:
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
static herr_t static herr_t
H5D__virtual_read(H5D_io_info_t *io_info, H5D_dset_io_info_t *dset_info) H5D__virtual_read(H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, H5D_dset_io_info_t *dset_info)
{ {
H5O_storage_virtual_t *storage; /* Convenient pointer into layout struct */ H5O_storage_virtual_t *storage; /* Convenient pointer into layout struct */
hsize_t tot_nelmts; /* Total number of elements mapped to mem_space */ hsize_t tot_nelmts; /* Total number of elements mapped to mem_space */
@ -2988,7 +2988,7 @@ done:
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
static herr_t static herr_t
H5D__virtual_write(H5D_io_info_t *io_info, H5D_dset_io_info_t *dset_info) H5D__virtual_write(H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, H5D_dset_io_info_t *dset_info)
{ {
H5O_storage_virtual_t *storage; /* Convenient pointer into layout struct */ H5O_storage_virtual_t *storage; /* Convenient pointer into layout struct */
hsize_t tot_nelmts; /* Total number of elements mapped to mem_space */ hsize_t tot_nelmts; /* Total number of elements mapped to mem_space */