mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r5921] Purpose:
Code cleanup Description: Two of the parameters to H5S_select_hyperslab are defined as "const hsize_t foo[]", and then "foo" is assigned another value, which is technically against the C standard and is now causing problems for a user with a more strict compiler. Solution: Changed "const hsize_t foo[]" to "const hsize_t *foo". Platforms tested: FreeBSD 4.6 (sleipnir) - not a significant enough change to worry about multi-platform testing.
This commit is contained in:
parent
ad39fcd690
commit
208e59bab9
@ -3906,9 +3906,9 @@ done:
|
||||
herr_t
|
||||
H5S_select_hyperslab (H5S_t *space, H5S_seloper_t op,
|
||||
const hssize_t start[],
|
||||
const hsize_t stride[],
|
||||
const hsize_t *stride,
|
||||
const hsize_t count[],
|
||||
const hsize_t block[])
|
||||
const hsize_t *block)
|
||||
{
|
||||
hsize_t *_stride=NULL; /* Stride array */
|
||||
hsize_t *_block=NULL; /* Block size array */
|
||||
@ -4453,10 +4453,10 @@ done:
|
||||
*/
|
||||
herr_t
|
||||
H5S_select_hyperslab (H5S_t *space, H5S_seloper_t op,
|
||||
const hssize_t start[],
|
||||
const hsize_t stride[],
|
||||
const hssize_t start,
|
||||
const hsize_t *stride[],
|
||||
const hsize_t count[],
|
||||
const hsize_t block[])
|
||||
const hsize_t *block)
|
||||
{
|
||||
hsize_t *_stride=NULL; /* Stride array */
|
||||
hsize_t *_block=NULL; /* Block size array */
|
||||
|
@ -192,8 +192,8 @@ __DLL__ herr_t H5S_select_write(H5F_t *f, struct H5O_layout_t *layout,
|
||||
/* Needed for internal use of selections in H5Fistore code */
|
||||
__DLL__ herr_t H5S_select_all(H5S_t *space, unsigned rel_prev);
|
||||
__DLL__ herr_t H5S_select_hyperslab (H5S_t *space, H5S_seloper_t op, const hssize_t start[],
|
||||
const hsize_t stride[], const hsize_t count[],
|
||||
const hsize_t block[]);
|
||||
const hsize_t *stride, const hsize_t count[],
|
||||
const hsize_t *block);
|
||||
|
||||
#ifdef H5_HAVE_PARALLEL
|
||||
/* MPI-IO function to read directly from app buffer to file rky980813 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user