diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2013-08-17 20:05:27 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2013-08-17 20:05:27 (GMT) |
commit | 308c378ccd9310b19c12d524d123cf5d352b6260 (patch) | |
tree | 69a4527bd8f8777151cd71832ecbc6e802cc0171 /test/objcopy.c | |
parent | d663d78cd274a48b702a2d3ce17fa6bb01be1ae1 (diff) | |
download | hdf5-308c378ccd9310b19c12d524d123cf5d352b6260.zip hdf5-308c378ccd9310b19c12d524d123cf5d352b6260.tar.gz hdf5-308c378ccd9310b19c12d524d123cf5d352b6260.tar.bz2 |
[svn-r24020] Description:
Clean up compiler warnings
Tested on:
Mac OSX/64 10.8.4 (amazon) w/C++ & FORTRAN
(too minor to require h5committest)
Diffstat (limited to 'test/objcopy.c')
-rw-r--r-- | test/objcopy.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/objcopy.c b/test/objcopy.c index d7da8f3..1377b96 100644 --- a/test/objcopy.c +++ b/test/objcopy.c @@ -9588,9 +9588,7 @@ test_copy_cdt_merge_cdt(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds hid_t sid = -1; /* Dataspace ID */ hid_t aid = -1; /* Attribute ID */ hid_t ocpypl_id = -1; /* Object copy plist ID */ - int i; /* Local index variable */ hsize_t dim1d[1]; /* dimension sizes */ - int buf[DIM_SIZE_1]; /* Buffer for data */ H5O_info_t oinfo; /* Object info */ haddr_t exp_addr; /* Expected object addresses */ char src_filename[NAME_BUF_SIZE]; /* Source file name */ @@ -9601,10 +9599,6 @@ test_copy_cdt_merge_cdt(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds else TESTING("H5Ocopy(): merging various committed datatypes") - /* set initial data values */ - for (i=0; i<DIM_SIZE_1; i++) - buf[i] = i; - /* Initialize the filenames */ h5_fixname(FILENAME[0], src_fapl, src_filename, sizeof src_filename); h5_fixname(FILENAME[1], dst_fapl, dst_filename, sizeof dst_filename); @@ -9821,8 +9815,6 @@ test_copy_cdt_merge_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t fid_src = -1, fid_dst = -1; /* File IDs */ hid_t tid = -1; /* Datatype ID */ hid_t ocpypl_id = -1; /* Object copy plist ID */ - unsigned int i; /* Local index variables */ - int buf[DIM_SIZE_1]; /* Buffer for writing data */ H5O_info_t oinfo; /* Object info */ haddr_t exp_addr; /* Expected object address */ char src_filename[NAME_BUF_SIZE]; @@ -9833,10 +9825,6 @@ test_copy_cdt_merge_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, else TESTING("H5Ocopy(): merging committed datatypes with suggestions") - /* set initial data values */ - for(i = 0; i < DIM_SIZE_1; i++) - buf[i] = (int)i; - /* Initialize the filenames */ h5_fixname(FILENAME[0], src_fapl, src_filename, sizeof src_filename); h5_fixname(FILENAME[1], dst_fapl, dst_filename, sizeof dst_filename); @@ -10345,9 +10333,7 @@ test_copy_cdt_merge_all_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t tid_short = -1; /* Datatype ID */ hid_t exp_tid = -1; /* Expected datatype ID */ hid_t ocpypl_id = -1; /* Object copy plist ID */ - unsigned int i; /* Local index variables */ hsize_t dim1d[1]; /* Dataset dimensions */ - int buf[DIM_SIZE_1]; /* Buffer for writing data */ char src_filename[NAME_BUF_SIZE]; char dst_filename[NAME_BUF_SIZE]; @@ -10356,10 +10342,6 @@ test_copy_cdt_merge_all_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, else TESTING("H5Ocopy(): merging different committed datatypes with suggestions") - /* set initial data values */ - for(i = 0; i < DIM_SIZE_1; i++) - buf[i] = (int)i; - /* Initialize the filenames */ h5_fixname(FILENAME[0], src_fapl, src_filename, sizeof src_filename); h5_fixname(FILENAME[1], dst_fapl, dst_filename, sizeof dst_filename); |