summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-05-12 19:53:17 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-05-12 19:53:17 (GMT)
commiteeeb3937624f7db68680e1074b1154adc780d516 (patch)
tree4f75e96a8db7c77733b0647bad5a78528787a1b6
parent54276b57320ecbe0a44dae41a58db8b0e64e28c7 (diff)
downloadhdf5-eeeb3937624f7db68680e1074b1154adc780d516.zip
hdf5-eeeb3937624f7db68680e1074b1154adc780d516.tar.gz
hdf5-eeeb3937624f7db68680e1074b1154adc780d516.tar.bz2
[svn-r18777] Moved declaration to top of function, windows compiler issue.
Tested: Windows
-rw-r--r--tools/h5copy/h5copygentest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/h5copy/h5copygentest.c b/tools/h5copy/h5copygentest.c
index f359a9b..5c00966 100644
--- a/tools/h5copy/h5copygentest.c
+++ b/tools/h5copy/h5copygentest.c
@@ -420,6 +420,11 @@ 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 +467,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)
{