Skip to content

Commit

Permalink
Adressing compilator warning on gcc 12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
juanangp committed Aug 29, 2023
1 parent 59e023f commit cc1790d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TRestTrackPathMinimizationProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void TRestTrackPathMinimizationProcess::NearestNeighbour(TRestVolumeHits* hits,
int k = s;
while (!vertex.empty()) {
int closestN = 0;
int index = 0, bestIndex;
int index = 0, bestIndex = 0;
double minDist = 1E9;
for (const auto& v : vertex) {
const double d = dist[k][v];
Expand Down

0 comments on commit cc1790d

Please sign in to comment.