mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
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:
parent
a1c81eda20
commit
93938b3a8d
@ -2456,8 +2456,8 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
htri_t
|
||||
H5D__chunk_cacheable(const H5D_io_info_t *io_info, H5D_dset_io_info_t *dset_info, haddr_t caddr,
|
||||
hbool_t write_op)
|
||||
H5D__chunk_cacheable(const H5D_io_info_t H5_ATTR_PARALLEL_USED *io_info, H5D_dset_io_info_t *dset_info,
|
||||
haddr_t caddr, hbool_t write_op)
|
||||
{
|
||||
const H5D_t *dataset = NULL; /* Local pointer to dataset info */
|
||||
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
|
||||
|
||||
/* Sanity check */
|
||||
HDassert(io_info);
|
||||
HDassert(dset_info);
|
||||
dataset = dset_info->dset;
|
||||
HDassert(dataset);
|
||||
@ -4266,8 +4265,8 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
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,
|
||||
hbool_t relax, hbool_t prev_unfilt_chunk)
|
||||
H5D__chunk_lock(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, const H5D_dset_io_info_t *dset_info,
|
||||
H5D_chunk_ud_t *udata, hbool_t relax, hbool_t prev_unfilt_chunk)
|
||||
{
|
||||
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 */
|
||||
@ -4674,7 +4673,7 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
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 H5O_layout_t *layout; /* Dataset layout */
|
||||
@ -7453,10 +7452,10 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static ssize_t
|
||||
H5D__nonexistent_readvv(const H5D_io_info_t *io_info, const H5D_dset_io_info_t *dset_info,
|
||||
size_t chunk_max_nseq, size_t *chunk_curr_seq, size_t chunk_len_arr[],
|
||||
hsize_t chunk_off_arr[], size_t mem_max_nseq, size_t *mem_curr_seq,
|
||||
size_t mem_len_arr[], hsize_t mem_off_arr[])
|
||||
H5D__nonexistent_readvv(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info,
|
||||
const H5D_dset_io_info_t *dset_info, size_t chunk_max_nseq, size_t *chunk_curr_seq,
|
||||
size_t chunk_len_arr[], hsize_t chunk_off_arr[], size_t mem_max_nseq,
|
||||
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 */
|
||||
ssize_t ret_value = -1; /* Return value */
|
||||
|
12
src/H5Defl.c
12
src/H5Defl.c
@ -441,9 +441,9 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
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,
|
||||
size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_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(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, const H5D_dset_io_info_t *dset_info,
|
||||
size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_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 */
|
||||
ssize_t ret_value = -1; /* Return value (Total size of sequence in bytes) */
|
||||
@ -522,9 +522,9 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
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,
|
||||
size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_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(const H5D_io_info_t H5_ATTR_NDEBUG_UNUSED *io_info, const H5D_dset_io_info_t *dset_info,
|
||||
size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_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 */
|
||||
ssize_t ret_value = -1; /* Return value (Total size of sequence in bytes) */
|
||||
|
@ -2785,7 +2785,7 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
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 */
|
||||
hsize_t tot_nelmts; /* Total number of elements mapped to mem_space */
|
||||
@ -2988,7 +2988,7 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
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 */
|
||||
hsize_t tot_nelmts; /* Total number of elements mapped to mem_space */
|
||||
|
Loading…
Reference in New Issue
Block a user