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=5c78fba9b2ae9806a31ca50ebab35e1646bf3f37;p=rrdtool.git 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 --- 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) {