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:
Miroslav Lichvar
2024-04-11 09:20:44 +02:00
parent a914140bd4
commit 342b588e3b
3 changed files with 6 additions and 7 deletions

View File

@@ -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,