diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-23 02:18:10 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-23 02:18:10 (GMT) |
commit | 03abf3cafefe43126a0e9816c7b427028b6ae4c1 (patch) | |
tree | 4ad6934925780a32e58e494cbe0fce159246e33d /src/H5R.c | |
parent | 1e2ff005ab88f0d05b34e0b8728b5b3ca4303737 (diff) | |
download | hdf5-03abf3cafefe43126a0e9816c7b427028b6ae4c1.zip hdf5-03abf3cafefe43126a0e9816c7b427028b6ae4c1.tar.gz hdf5-03abf3cafefe43126a0e9816c7b427028b6ae4c1.tar.bz2 |
[svn-r13798] Description:
Clean up compiler warnings
Tested on:
Mac OS X/32 10.4.9 (amazon)
Diffstat (limited to 'src/H5R.c')
-rw-r--r-- | src/H5R.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -361,13 +361,12 @@ H5R_dereference(H5F_t *file, hid_t dxpl_id, H5R_type_t ref_type, const void *_re case H5R_DATASET_REGION: { - const hdset_reg_ref_t *ref = (const hdset_reg_ref_t *)_ref; /* Get pointer to correct type of reference struct */ H5HG_t hobjid; /* Heap object ID */ uint8_t *buf; /* Buffer to store serialized selection in */ const uint8_t *p; /* Pointer to OID to store */ /* Get the heap ID for the dataset region */ - p = (const uint8_t *)ref; + p = (const uint8_t *)_ref; H5F_addr_decode(oloc.file, &p, &(hobjid.addr)); INT32DECODE(p, hobjid.idx); @@ -542,7 +541,6 @@ H5R_get_region(H5F_t *file, hid_t dxpl_id, const void *_ref) { H5O_loc_t oloc; /* Object location */ const uint8_t *p; /* Pointer to OID to store */ - const hdset_reg_ref_t *ref = (const hdset_reg_ref_t *)_ref; /* Get pointer to correct type of reference struct */ H5HG_t hobjid; /* Heap object ID */ uint8_t *buf = NULL; /* Buffer to store serialized selection in */ H5S_t *ret_value; @@ -557,7 +555,7 @@ H5R_get_region(H5F_t *file, hid_t dxpl_id, const void *_ref) oloc.file = file; /* Get the heap ID for the dataset region */ - p = (const uint8_t *)ref; + p = (const uint8_t *)_ref; H5F_addr_decode(oloc.file, &p, &(hobjid.addr)); INT32DECODE(p, hobjid.idx); @@ -687,12 +685,11 @@ H5R_get_obj_type(H5F_t *file, hid_t dxpl_id, H5R_type_t ref_type, const void *_r case H5R_DATASET_REGION: { - const hdset_reg_ref_t *ref = (const hdset_reg_ref_t *)_ref; /* Get pointer to correct type of reference struct */ H5HG_t hobjid; /* Heap object ID */ uint8_t *buf; /* Buffer to store serialized selection in */ /* Get the heap ID for the dataset region */ - p = (const uint8_t *)ref; + p = (const uint8_t *)_ref; H5F_addr_decode(oloc.file, &p, &(hobjid.addr)); INT32DECODE(p, hobjid.idx); @@ -837,13 +834,12 @@ H5R_get_name(H5F_t *f, hid_t dxpl_id, hid_t id, H5R_type_t ref_type, case H5R_DATASET_REGION: { - const hdset_reg_ref_t *ref = (const hdset_reg_ref_t *)_ref; /* Get pointer to correct type of reference struct */ H5HG_t hobjid; /* Heap object ID */ uint8_t *buf; /* Buffer to store serialized selection in */ const uint8_t *p; /* Pointer to OID to store */ /* Get the heap ID for the dataset region */ - p = (const uint8_t *)ref; + p = (const uint8_t *)_ref; H5F_addr_decode(oloc.file, &p, &(hobjid.addr)); INT32DECODE(p, hobjid.idx); |