summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Mainzer <mainzer@hdfgroup.org>2007-02-16 21:12:42 (GMT)
committerJohn Mainzer <mainzer@hdfgroup.org>2007-02-16 21:12:42 (GMT)
commit68541fee67ed6d65291fbe88202cdcac042d6f2e (patch)
treeb890903e8c8757ee5affad60f30bf8a4a5167114
parent5e5fd1e940b5c86f24af24a50a2a60a5d5c63906 (diff)
downloadhdf5-68541fee67ed6d65291fbe88202cdcac042d6f2e.zip
hdf5-68541fee67ed6d65291fbe88202cdcac042d6f2e.tar.gz
hdf5-68541fee67ed6d65291fbe88202cdcac042d6f2e.tar.bz2
[svn-r13323] Fixed unused parameter warnings in H5C.c
-rw-r--r--src/H5C.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 82b858b..4410aa4 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -5296,11 +5296,21 @@ done:
* Modified routine to allow it to operate on protected
* entries.
*
+ * JRM -- 2/16/07
+ * Added conditional compile to avoid unused parameter
+ * warning in production compile.
+ *
*-------------------------------------------------------------------------
*/
+#ifndef NDEBUG
+herr_t
+H5C_pin_protected_entry(H5C_t * cache_ptr,
+ void * thing)
+#else
herr_t
-H5C_pin_protected_entry(H5C_t * cache_ptr,
+H5C_pin_protected_entry(H5C_t UNUSED * cache_ptr,
void * thing)
+#endif
{
herr_t ret_value = SUCCEED; /* Return value */
H5C_cache_entry_t * entry_ptr;
@@ -6537,14 +6547,26 @@ done:
* JRM - 8/9/06
* Further updates for pin related statistics.
*
- * JRM 8/23/08
+ * JRM 8/23/06
* Added initialization code for new flush related statistics.
*
+ * JRM 2/16/07
+ * Added conditional compile code to avoid unused parameter
+ * warning in the production build.
+ *
*-------------------------------------------------------------------------
*/
void
+#ifndef NDEBUG
H5C_stats__reset(H5C_t * cache_ptr)
+#else /* NDEBUG */
+#if H5C_COLLECT_CACHE_STATS
+H5C_stats__reset(H5C_t * cache_ptr)
+#else /* H5C_COLLECT_CACHE_STATS */
+H5C_stats__reset(H5C_t UNUSED * cache_ptr)
+#endif /* H5C_COLLECT_CACHE_STATS */
+#endif /* NDEBUG */
{
#if H5C_COLLECT_CACHE_STATS
int i;