Skip to content

Commit

Permalink
fix: Maybe uninit warning in KDTree (#1162)
Browse files Browse the repository at this point in the history
This popped up for me on GCC 8. Trivial fix.
  • Loading branch information
paulgessinger authored Feb 14, 2022
1 parent eb51e5b commit 73173e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Core/include/Acts/Utilities/KDTree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ class KDTree {
// Next, we calculate the summed squared error from the mean in each
// dimension, again with the normalized values.
std::array<Scalar, Dims> sqe_v;
sqe_v.fill(0);

for (iterator_t i = this->m_begin_it; i != this->m_end_it; ++i) {
for (std::size_t j = 0; j < Dims; ++j) {
Expand Down

0 comments on commit 73173e0

Please sign in to comment.