Code

stop complaints about unused variables if not running DEBUG
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Mar 2008 22:55:13 +0000 (22:55 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Mar 2008 22:55:13 +0000 (22:55 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1314 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_update.c

index 01e756d1e9bfe0a9930ac9e13f554cee05318356..c5bd1bf4f1312e2af0b42f5982cc21814f249cd3 100644 (file)
@@ -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) {