summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-09-19 20:13:47 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-09-19 20:13:47 (GMT)
commit3752177106983673ce51e55e5faaefa41c269465 (patch)
treeb34d5f3eb7ca2e4b6b9fce0d6780fe3dbd4e503d /src/H5AC.c
parent14b9ac8763deda60cca5d75beae85fda4390b143 (diff)
downloadhdf5-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.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index a9bf824..89ef2d9 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -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