mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r18831] Purpose:
Resolve build issue on Windows due to the location of variable definition. Tested: jam
This commit is contained in:
parent
9ef21822f5
commit
6413372648
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user