This removes a GCC 4.9 warning (unused-but-set-variable)
Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
void
coverage_run(void)
{
- /* Defines the moving average array index variables. */
- static unsigned int min_idx, hr_idx;
struct coverage_counter **c = coverage_counters;
long long int now;
/* Updates the global index variables. */
idx_count = (idx_count + slots) % (MIN_AVG_LEN * HR_AVG_LEN);
- min_idx = idx_count % MIN_AVG_LEN;
- hr_idx = idx_count / MIN_AVG_LEN;
/* Updates the run time. */
coverage_run_time = now + COVERAGE_RUN_INTERVAL;
}