summaryrefslogtreecommitdiffstats
path: root/tools/h5copy/h5copygentest.c
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2010-05-17 20:11:35 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2010-05-17 20:11:35 (GMT)
commit6413372648acaa53c88789d380df4b7d74c1af1e (patch)
tree4373a879c6d315676dc4eda62984665fa1bacf16 /tools/h5copy/h5copygentest.c
parent9ef21822f5ec037e0dd40cf5b05762c738b8c7ad (diff)
downloadhdf5-6413372648acaa53c88789d380df4b7d74c1af1e.zip
hdf5-6413372648acaa53c88789d380df4b7d74c1af1e.tar.gz
hdf5-6413372648acaa53c88789d380df4b7d74c1af1e.tar.bz2
[svn-r18831] Purpose:
Resolve build issue on Windows due to the location of variable definition. Tested: jam
Diffstat (limited to 'tools/h5copy/h5copygentest.c')
-rw-r--r--tools/h5copy/h5copygentest.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/h5copy/h5copygentest.c b/tools/h5copy/h5copygentest.c
index a79789a..3bf6534 100644
--- a/tools/h5copy/h5copygentest.c
+++ b/tools/h5copy/h5copygentest.c
@@ -420,6 +420,10 @@ static herr_t gen_obj_ref(hid_t loc_id)
hsize_t dims2[1]={2};
int data[3] = {10,20,30};
int status;
+ /*---------------------
+ * create obj references to the previously created objects.
+ * Passing -1 as reference is an object.*/
+ hobj_ref_t or_data[2]; /* write buffer */
herr_t ret = SUCCEED;
/*--------------
@@ -462,11 +466,6 @@ static herr_t gen_obj_ref(hid_t loc_id)
}
H5Gclose(oid);
- /*---------------------
- * create obj references to the previously created objects.
- * Passing -1 as reference is an object.*/
- hobj_ref_t or_data[2]; /* write buffer */
-
status = H5Rcreate (&or_data[0], loc_id, OBJ_REF_DS, H5R_OBJECT, -1);
if (status < 0)
{