Skip to content

Commit 21575c4

Browse files
authored
Merge pull request #159 from wxmerkt/topic/fix-warnings
ROS-CI: Debug and Release builds, fix warnings
2 parents 72460c6 + 76b82d9 commit 21575c4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/ci-linux-ros.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ jobs:
66
strategy:
77
matrix:
88
env:
9-
- {ROS_DISTRO: noetic}
9+
- {ROS_DISTRO: noetic, CMAKE_BUILD_TYPE: Debug}
10+
- {ROS_DISTRO: noetic, CMAKE_BUILD_TYPE: Release}
1011
env:
1112
CCACHE_DIR: /github/home/.ccache # Enable ccache
1213
CMAKE_ARGS: -DBUILD_WITH_VECTORIZATION_SUPPORT=OFF # Simde is not available yet

examples/cpp/first_example_sparse.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ main()
2525
// random utils to generate sparse matrix
2626
std::random_device rd; // obtain a random number from hardware
2727
std::mt19937 gen(rd()); // seed the generator
28-
std::uniform_int_distribution<> int_distr(0, dim - 1); // define the range
28+
std::uniform_int_distribution<> int_distr(
29+
0, static_cast<int>(dim) - 1); // define the range
2930
std::uniform_real_distribution<> double_distr(0, 1);
3031

3132
// cost H: first way to define sparse matrix from triplet list

test/src/sparse_qp_wrapper.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6009,10 +6009,6 @@ TEST_CASE("ProxQP::sparse: init must be called before update")
60096009
qp_random.C.cast<bool>());
60106010
qp.settings.eps_abs = eps_abs;
60116011

6012-
T rho(1.e-7);
6013-
T mu_eq(1.e-4);
6014-
bool compute_preconditioner = true;
6015-
60166012
qp.settings.eps_abs = eps_abs;
60176013
qp.settings.eps_rel = 0;
60186014
qp.settings.initial_guess = InitialGuessStatus::NO_INITIAL_GUESS;

0 commit comments

Comments
 (0)