summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5Dchunk.c1
-rw-r--r--src/H5Rdeprec.c32
-rw-r--r--src/H5Rint.c16
-rw-r--r--src/H5Tref.c154
4 files changed, 101 insertions, 102 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c
index d4480b7..afb9545 100644
--- a/src/H5Dchunk.c
+++ b/src/H5Dchunk.c
@@ -2157,7 +2157,6 @@ H5D__create_chunk_mem_map_1d(const H5D_chunk_map_t *fm)
else {
hsize_t mem_sel_start[H5S_MAX_RANK]; /* Offset of low bound of file selection */
hsize_t mem_sel_end[H5S_MAX_RANK]; /* Offset of high bound of file selection */
- HDassert(fm->m_ndims == 1);
HDassert(fm->m_ndims == 1);
diff --git a/src/H5Rdeprec.c b/src/H5Rdeprec.c
index 67a1c26..25cce85 100644
--- a/src/H5Rdeprec.c
+++ b/src/H5Rdeprec.c
@@ -252,16 +252,16 @@ H5Rcreate(void *ref, hid_t loc_id, const char *name, H5R_type_t ref_type,
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid location identifier")
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(vol_obj, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(vol_obj, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Get object type */
@@ -487,16 +487,16 @@ H5Rget_region(hid_t id, H5R_type_t ref_type, const void *ref)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5I_INVALID_HID, "invalid file identifier")
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(vol_obj, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(vol_obj, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Get object type */
diff --git a/src/H5Rint.c b/src/H5Rint.c
index e6acbf8..8bf0ce2 100644
--- a/src/H5Rint.c
+++ b/src/H5Rint.c
@@ -1508,16 +1508,16 @@ H5R__decode_token_compat(H5VL_object_t *vol_obj, H5I_type_t type, H5R_type_t ref
FUNC_ENTER_PACKAGE
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(vol_obj, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(vol_obj, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Get the file for the object */
diff --git a/src/H5Tref.c b/src/H5Tref.c
index 56ac878..f31fecf 100644
--- a/src/H5Tref.c
+++ b/src/H5Tref.c
@@ -193,16 +193,16 @@ H5T__ref_set_loc(const H5T_t *dt, H5VL_object_t *file, H5T_loc_t loc)
H5F_t *f;
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Retrieve file from VOL object */
@@ -220,16 +220,16 @@ H5T__ref_set_loc(const H5T_t *dt, H5VL_object_t *file, H5T_loc_t loc)
H5F_t *f;
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Retrieve file from VOL object */
@@ -554,16 +554,16 @@ H5T__ref_mem_write(H5VL_object_t *src_file, const void *src_buf, size_t src_size
HDassert(dst_size == H5T_REF_MEM_SIZE);
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(src_file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(src_file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Retrieve file from VOL object */
@@ -904,16 +904,16 @@ static herr_t H5T__ref_obj_disk_isnull(const H5VL_object_t *src_file,
HDassert(isnull);
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(src_file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(src_file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Retrieve file from VOL object */
@@ -954,16 +954,16 @@ H5T__ref_obj_disk_getsize(H5VL_object_t *src_file, const void H5_ATTR_UNUSED *sr
HDassert(src_buf);
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(src_file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, 0, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(src_file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, 0, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Retrieve file from VOL object */
@@ -1002,16 +1002,16 @@ H5T__ref_obj_disk_read(H5VL_object_t *src_file, const void *src_buf, size_t src_
HDassert(dst_buf);
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(src_file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(src_file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Retrieve file from VOL object */
@@ -1057,16 +1057,16 @@ H5T__ref_dsetreg_disk_isnull(const H5VL_object_t *src_file, const void *src_buf,
HDassert(isnull);
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(src_file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(src_file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Retrieve file from VOL object */
@@ -1105,23 +1105,23 @@ H5T__ref_dsetreg_disk_getsize(H5VL_object_t H5_ATTR_UNUSED *src_file,
HDassert(src_buf);
#ifndef NDEBUG
-{
- H5F_t *src_f;
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ H5F_t *src_f;
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(src_file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, 0, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(src_file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, 0, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
- /* Retrieve file from VOL object */
- if(NULL == (src_f = (H5F_t *)H5VL_object_data(src_file)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "invalid VOL object")
+ /* Retrieve file from VOL object */
+ if(NULL == (src_f = (H5F_t *)H5VL_object_data(src_file)))
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "invalid VOL object")
- HDassert(src_size == H5T_REF_DSETREG_DISK_SIZE(src_f));
-}
+ HDassert(src_size == H5T_REF_DSETREG_DISK_SIZE(src_f));
+ }
#endif /* NDEBUG */
done:
@@ -1154,16 +1154,16 @@ H5T__ref_dsetreg_disk_read(H5VL_object_t *src_file, const void *src_buf, size_t
HDassert(dst_size == sizeof(struct H5Tref_dsetreg));
#ifndef NDEBUG
-{
- hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
+ {
+ hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */
- /* Check if using native VOL connector */
- if(H5VL_object_is_native(src_file, &is_native) < 0)
- HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
+ /* Check if using native VOL connector */
+ if(H5VL_object_is_native(src_file, &is_native) < 0)
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector")
- /* Must use native VOL connector for this operation */
- HDassert(is_native);
-}
+ /* Must use native VOL connector for this operation */
+ HDassert(is_native);
+ }
#endif /* NDEBUG */
/* Retrieve file from VOL object */