diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-03-09 18:45:44 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-03-09 18:45:44 (GMT) |
commit | 31ffa03914360f530544c48d6a930abc5009e3d8 (patch) | |
tree | 423d8b500386470b0e7371091184214dd9d5fcae /hl/examples/ex_lite3.c | |
parent | 64f65d96d945210c23b28e124d286505e31bb68c (diff) | |
download | hdf5-31ffa03914360f530544c48d6a930abc5009e3d8.zip hdf5-31ffa03914360f530544c48d6a930abc5009e3d8.tar.gz hdf5-31ffa03914360f530544c48d6a930abc5009e3d8.tar.bz2 |
[svn-r26405] Removed compiler warnings, hl/examples:
HDF5-237
tested: h5committest
Diffstat (limited to 'hl/examples/ex_lite3.c')
-rw-r--r-- | hl/examples/ex_lite3.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/hl/examples/ex_lite3.c b/hl/examples/ex_lite3.c index 9164c7b..f409ea4 100644 --- a/hl/examples/ex_lite3.c +++ b/hl/examples/ex_lite3.c @@ -26,7 +26,6 @@ int main( void ) hid_t space_id; hsize_t dims[1] = { ATTR_SIZE }; int data[ATTR_SIZE] = {1,2,3,4,5}; - herr_t status; int i; /* create a file */ @@ -39,8 +38,8 @@ int main( void ) dset_id = H5Dcreate2(file_id, "dset", H5T_NATIVE_INT, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); /* close */ - status = H5Dclose(dset_id); - status = H5Sclose(space_id); + H5Dclose(dset_id); + H5Sclose(space_id); /*------------------------------------------------------------------------- * example of H5LTset_attribute_int @@ -48,7 +47,7 @@ int main( void ) */ /* create and write the attribute "attr1" on the dataset "dset" */ - status = H5LTset_attribute_int(file_id, "dset", "attr1", data, ATTR_SIZE); + H5LTset_attribute_int(file_id, "dset", "attr1", data, ATTR_SIZE); /*------------------------------------------------------------------------- * example of H5LTget_attribute_int @@ -56,14 +55,14 @@ int main( void ) */ /* get the attribute "attr1" from the dataset "dset" */ - status = H5LTget_attribute_int(file_id, "dset", "attr1", data); + H5LTget_attribute_int(file_id, "dset", "attr1", data); for(i = 0; i < ATTR_SIZE; i++ ) printf(" %d", data[i]); printf("\n"); /* close file */ - status = H5Fclose(file_id); + H5Fclose(file_id); return 0; } |