From: oetiker Date: Tue, 25 Mar 2008 22:55:13 +0000 (+0000) Subject: stop complaints about unused variables if not running DEBUG X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4de8ecbf9ec2af377af739ef96ae05e2e62da0a8;p=rrdtool-all.git stop complaints about unused variables if not running DEBUG git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1314 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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) {