From 5c78fba9b2ae9806a31ca50ebab35e1646bf3f37 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 25 Mar 2008 22:55:13 +0000 Subject: [PATCH] stop complaints about unused variables if not running DEBUG git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1314 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_update.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rrd_update.c b/src/rrd_update.c index 01e756d..c5bd1bf 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -1745,8 +1745,14 @@ static rrd_value_t calculate_cdp_val( rrd_value_t pdp_temp_val, unsigned long elapsed_pdp_st, int current_cf, +#ifdef DEBUG int i, - int ii) + int ii +#else + int UNUSED(i), + int UNUSED(ii) +#endif +) { if (isnan(cdp_val)) { if (current_cf == CF_AVERAGE) { -- 2.30.2