diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-21 16:23:38 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-21 16:23:38 (GMT) |
commit | bc2d9432b3f05f21f0244c3da48bc8da98003485 (patch) | |
tree | 3c0d9a8dec330f397a861c83798d6a4e2c9fada3 /test | |
parent | f3674477db1c2f7566a85eaa2fd19ebebb7a3ee8 (diff) | |
download | hdf5-bc2d9432b3f05f21f0244c3da48bc8da98003485.zip hdf5-bc2d9432b3f05f21f0244c3da48bc8da98003485.tar.gz hdf5-bc2d9432b3f05f21f0244c3da48bc8da98003485.tar.bz2 |
[svn-r6131] Purpose:
Code cleanup
Description:
Clean up compiler warnings from IRIX64 builds.
Platforms tested:
IRIX64 6.5 (modi4)
Diffstat (limited to 'test')
-rw-r--r-- | test/file_handle.c | 2 | ||||
-rw-r--r-- | test/tattr.c | 4 | ||||
-rw-r--r-- | test/tvlstr.c | 7 |
3 files changed, 3 insertions, 10 deletions
diff --git a/test/file_handle.c b/test/file_handle.c index 2457586..5984296 100644 --- a/test/file_handle.c +++ b/test/file_handle.c @@ -270,7 +270,7 @@ test_multi(void) HDmemset(memb_addr, 0, sizeof memb_addr); HDmemset(sv, 0, sizeof sv); - for(mt=0; mt<H5FD_MEM_NTYPES; mt++) + for(mt=H5FD_MEM_DEFAULT; mt<H5FD_MEM_NTYPES; H5_INC_ENUM(H5FD_mem_t,mt)) memb_map[mt] = H5FD_MEM_SUPER; memb_map[H5FD_MEM_DRAW] = H5FD_MEM_DRAW; diff --git a/test/tattr.c b/test/tattr.c index f80d478..aea6287 100644 --- a/test/tattr.c +++ b/test/tattr.c @@ -188,7 +188,7 @@ test_attr_basic_write(void) if(attr_name_size>0) attr_name = (char*)HDcalloc((size_t)(attr_name_size+1), sizeof(char)); - ret=H5Aget_name(attr, (size_t)(attr_name_size+1), attr_name); + ret=(herr_t)H5Aget_name(attr, (size_t)(attr_name_size+1), attr_name); CHECK(ret, FAIL, "H5Aget_name"); ret=HDstrcmp(attr_name, ATTR_TMP_NAME); VERIFY(ret, 0, "HDstrcmp"); @@ -223,7 +223,7 @@ test_attr_basic_write(void) if(attr_name_size>0) attr_name = (char*)HDcalloc((size_t)(attr_name_size+1), sizeof(char)); - ret=H5Aget_name(attr2, (size_t)(attr_name_size+1), attr_name); + ret=(herr_t)H5Aget_name(attr2, (size_t)(attr_name_size+1), attr_name); CHECK(ret, FAIL, "H5Aget_name"); ret=HDstrcmp(attr_name, ATTR1A_NAME); VERIFY(ret, 0, "HDstrcmp"); diff --git a/test/tvlstr.c b/test/tvlstr.c index 91bf47a..af809d6 100644 --- a/test/tvlstr.c +++ b/test/tvlstr.c @@ -239,7 +239,6 @@ static void test_vlstring_type(void) H5T_cset_t cset; H5T_str_t pad; herr_t ret; - size_t size; /* Output message about test being performed */ MESSAGE(5, ("Testing VL String type\n")); @@ -391,9 +390,6 @@ static void test_read_vl_string_attribute(void) hid_t type; herr_t ret; char *string_att_check; - hsize_t size[64]; - hid_t space; - int ndims; file = H5Fopen(DATAFILE, H5F_ACC_RDONLY, H5P_DEFAULT); CHECK(file, FAIL, "H5Fopen"); @@ -411,9 +407,6 @@ static void test_read_vl_string_attribute(void) att = H5Aopen_name(root, "test_scalar"); CHECK(att, FAIL, "H5Aopen_name"); - space = H5Aget_space(att); - ndims = H5Sget_simple_extent_dims(space, size, NULL); - ret = H5Aread(att, type, &string_att_check); CHECK(ret, FAIL, "H5Aread"); |