From 4de8ecbf9ec2af377af739ef96ae05e2e62da0a8 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@1314 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_update.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/program/src/rrd_update.c b/program/src/rrd_update.c index 01e756d1..c5bd1bf4 100644 --- a/program/src/rrd_update.c +++ b/program/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