mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
avoid some static analysis errors
Modify the code to avoid some false positives reported by the clang and gcc static analyzers.
This commit is contained in:
@@ -549,9 +549,9 @@ SST_DoNewRegression(SST_Stats inst)
|
||||
sd_weight += (peer_distances[i] - min_distance) / sd;
|
||||
weights[i] = SQUARE(sd_weight);
|
||||
}
|
||||
}
|
||||
|
||||
correct_asymmetry(inst, times_back, offsets);
|
||||
correct_asymmetry(inst, times_back, offsets);
|
||||
}
|
||||
|
||||
inst->regression_ok = RGR_FindBestRegression(times_back + inst->runs_samples,
|
||||
offsets + inst->runs_samples, weights,
|
||||
|
||||
Reference in New Issue
Block a user