mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-06 17:20:42 +08:00
[svn-r12871] Description:
Clean up a couple of warnings... Tested on: Linux/64 2.6 (chicago2)
This commit is contained in:
parent
8e0a4a03c0
commit
db3632444b
@ -1065,7 +1065,11 @@ H5G_refname_iterator(hid_t group, const char *name, void *_udata)
|
||||
/* Get information for object in group */
|
||||
if(H5G_get_objinfo(&loc, name, 0, &sb, udata->dxpl_id) < 0)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "cannot stat object")
|
||||
#if H5_SIZEOF_UINT64_T > H5_SIZEOF_LONG
|
||||
objno = (haddr_t)sb.objno[0] | ((haddr_t)sb.objno[1] << (8 * sizeof(long)));
|
||||
#else
|
||||
objno = (haddr_t)sb.objno[0];
|
||||
#endif
|
||||
|
||||
/* Check for finding the object */
|
||||
/* (checks against the file in the location as well, to make certain that
|
||||
|
@ -161,7 +161,11 @@ sym_insert(H5G_stat_t *sb, const char *name)
|
||||
|
||||
/* Insert the entry */
|
||||
n = idtab_g.nobjs++;
|
||||
#if H5_SIZEOF_UINT64_T > H5_SIZEOF_LONG
|
||||
objno = (haddr_t)sb->objno[0] | ((haddr_t)sb->objno[1] << (8 * sizeof(long)));
|
||||
#else
|
||||
objno = (haddr_t)sb->objno[0];
|
||||
#endif
|
||||
idtab_g.obj[n].id = objno;
|
||||
idtab_g.obj[n].name = HDstrdup(name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user