diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-09-19 20:13:47 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-09-19 20:13:47 (GMT) |
commit | 3752177106983673ce51e55e5faaefa41c269465 (patch) | |
tree | b34d5f3eb7ca2e4b6b9fce0d6780fe3dbd4e503d /src/H5AC.c | |
parent | 14b9ac8763deda60cca5d75beae85fda4390b143 (diff) | |
download | hdf5-3752177106983673ce51e55e5faaefa41c269465.zip hdf5-3752177106983673ce51e55e5faaefa41c269465.tar.gz hdf5-3752177106983673ce51e55e5faaefa41c269465.tar.bz2 |
[svn-r7498] Purpose:
Code cleanup
Description:
Clean up various warnings and parameter mis-matches, etc.
Platforms tested:
FreeBSD 4.9 (sleipnir)
too minor to need h5committest
Diffstat (limited to 'src/H5AC.c')
-rw-r--r-- | src/H5AC.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1220,11 +1220,15 @@ done: */ void * H5AC_protect(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr, - const void *udata1, void *udata2, H5AC_protect_t rw) + const void *udata1, void *udata2, H5AC_protect_t +#ifndef H5_HAVE_FPHDF5 + UNUSED +#endif /* H5_HAVE_FPHDF5 */ + rw) { unsigned idx; /* Index in cache */ void *thing = NULL; - H5AC_t *cache; + H5AC_t *cache = NULL; H5AC_info_t **info; void *ret_value; /* Return value */ #ifdef H5_HAVE_FPHDF5 @@ -1449,7 +1453,6 @@ done: if (ret_value) ++cache->nprots; - rw = rw; /* Remove compiler warning if no FPHDF5 used */ FUNC_LEAVE_NOAPI(ret_value) } @@ -1492,7 +1495,7 @@ H5AC_unprotect(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr, { unsigned idx; H5AC_flush_func_t flush; - H5AC_t *cache; + H5AC_t *cache = NULL; H5AC_info_t **info; herr_t ret_value = SUCCEED; /* Return value */ #ifdef H5_HAVE_FPHDF5 |