Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
e991355c
Unverified
Commit
e991355c
authored
Jun 09, 2021
by
Roman Lebedev
Committed by
GitHub
Jun 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NFCI] Drop warning to satisfy clang's -Wunused-but-set-variable diag (#1174)
Fixes
https://github.com/google/benchmark/issues/1172
parent
f90215f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
complexity.cc
src/complexity.cc
+0
-2
No files found.
src/complexity.cc
View file @
e991355c
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment