Skip to content

Commit

Permalink
[NFCI] Drop warning to satisfy clang's -Wunused-but-set-variable diag (
Browse files Browse the repository at this point in the history
  • Loading branch information
LebedevRI authored Jun 9, 2021
1 parent f90215f commit e991355
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/complexity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,13 @@ std::string GetBigOString(BigO complexity) {
LeastSq MinimalLeastSq(const std::vector<int64_t>& n,
const std::vector<double>& time,
BigOFunc* fitting_curve) {
double sigma_gn = 0.0;
double sigma_gn_squared = 0.0;
double sigma_time = 0.0;
double sigma_time_gn = 0.0;

// Calculate least square fitting parameter
for (size_t i = 0; i < n.size(); ++i) {
double gn_i = fitting_curve(n[i]);
sigma_gn += gn_i;
sigma_gn_squared += gn_i * gn_i;
sigma_time += time[i];
sigma_time_gn += time[i] * gn_i;
Expand Down

0 comments on commit e991355

Please sign in to comment.