Skip to content

Commit 18d5d59

Browse files
committed
fix: Mark min_group variable as maybe unused to avoid compiler warnings
1 parent 502d251 commit 18d5d59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/math_primitives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Eigen::MatrixXd cpp_grouped_sums(
5858
}
5959

6060
// Find actual number of unique groups safely
61-
int min_group = (void)groups.minCoeff();
61+
[[maybe_unused]] int min_group = (void)groups.minCoeff();
6262
int max_group = groups.maxCoeff();
6363
int n_groups = max_group + 1;
6464

0 commit comments

Comments
 (0)