Unverified Commit e991355c by Roman Lebedev Committed by GitHub

[NFCI] Drop warning to satisfy clang's -Wunused-but-set-variable diag (#1174)

parent f90215f1
...@@ -82,7 +82,6 @@ std::string GetBigOString(BigO complexity) { ...@@ -82,7 +82,6 @@ std::string GetBigOString(BigO complexity) {
LeastSq MinimalLeastSq(const std::vector<int64_t>& n, LeastSq MinimalLeastSq(const std::vector<int64_t>& n,
const std::vector<double>& time, const std::vector<double>& time,
BigOFunc* fitting_curve) { BigOFunc* fitting_curve) {
double sigma_gn = 0.0;
double sigma_gn_squared = 0.0; double sigma_gn_squared = 0.0;
double sigma_time = 0.0; double sigma_time = 0.0;
double sigma_time_gn = 0.0; double sigma_time_gn = 0.0;
...@@ -90,7 +89,6 @@ LeastSq MinimalLeastSq(const std::vector<int64_t>& n, ...@@ -90,7 +89,6 @@ LeastSq MinimalLeastSq(const std::vector<int64_t>& n,
// Calculate least square fitting parameter // Calculate least square fitting parameter
for (size_t i = 0; i < n.size(); ++i) { for (size_t i = 0; i < n.size(); ++i) {
double gn_i = fitting_curve(n[i]); double gn_i = fitting_curve(n[i]);
sigma_gn += gn_i;
sigma_gn_squared += gn_i * gn_i; sigma_gn_squared += gn_i * gn_i;
sigma_time += time[i]; sigma_time += time[i];
sigma_time_gn += time[i] * gn_i; sigma_time_gn += time[i] * gn_i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment