Skip to content

Commit 45fa3ec

Browse files
fix(code-quality): comment-out unused parameters
1 parent 67f0182 commit 45fa3ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cpp/tests/credible_region.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ t_uint N = rows * cols;
1414

1515
TEST_CASE("calculating gamma") {
1616
sopt::logging::set_level("debug");
17-
const std::function<t_real(t_Vector)> energy_function = [](const t_Vector &input) -> t_real {
17+
const std::function<t_real(t_Vector)> energy_function = [](const t_Vector & /*input*/) -> t_real {
1818
return 0.;
1919
};
2020
const t_Vector x = t_Vector::Random(N);

cpp/tests/forward_backward.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ TEST_CASE("Forward Backward with ||x - x0||_2^2 function", "[fb]") {
3939
auto const grad = [](t_Vector &out, const t_Vector &x) { out = x; };
4040
const t_Vector x_guess = t_Vector::Random(target0.size());
4141
const t_Vector res = x_guess - target0;
42-
auto const convergence = [&target0](const t_Vector &x, const t_Vector &res) -> bool {
42+
auto const convergence = [&target0](const t_Vector &x, const t_Vector & /*res*/) -> bool {
4343
return x.isApprox(target0, 1e-9);
4444
};
4545
CAPTURE(target0);

cpp/tests/primal_dual.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ TEST_CASE("Primal Dual with 0.5 * ||x - x0||_2^2 function", "[primaldual]") {
6060
auto const g = proximal::L2Norm<Scalar>();
6161
const t_Vector x_guess = t_Vector::Random(target0.size());
6262
const t_Vector res = x_guess - target0;
63-
auto const convergence = [&target0](const t_Vector &x, const t_Vector &res) -> bool {
63+
auto const convergence = [&target0](const t_Vector &x, const t_Vector & /*res*/) -> bool {
6464
return x.isApprox(target0, 1e-9);
6565
};
6666
CAPTURE(target0);

0 commit comments

Comments
 (0)