-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set to actual version of 1.5.3 - apply patch file for clang fix
Signed-off-by: aseiwert <adam.seiwert@ngc.com>
- Loading branch information
aseiwert
committed
Jul 15, 2023
1 parent
2bc9a26
commit 46bfc89
Showing
2 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
0001-NFCI-Drop-warning-to-satisfy-clang-s-Wunused-but-set.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From e991355c02b93fe17713efe04cbc2e278e00fdbd Mon Sep 17 00:00:00 2001 | ||
From: Roman Lebedev <lebedev.ri@gmail.com> | ||
Date: Wed, 9 Jun 2021 11:52:12 +0300 | ||
Subject: [PATCH] [NFCI] Drop warning to satisfy clang's | ||
-Wunused-but-set-variable diag (#1174) | ||
|
||
Fixes https://github.com/google/benchmark/issues/1172 | ||
--- | ||
src/complexity.cc | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/src/complexity.cc b/src/complexity.cc | ||
index d74b146..29f7c3b 100644 | ||
--- a/src/complexity.cc | ||
+++ b/src/complexity.cc | ||
@@ -82,7 +82,6 @@ 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; | ||
@@ -90,7 +89,6 @@ LeastSq MinimalLeastSq(const std::vector<int64_t>& n, | ||
// 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; | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters