Skip to content

Commit

Permalink
src/core/pal/problem.cpp: silence likely cppcheck false positive abou…
Browse files Browse the repository at this point in the history
…t invalid index passed to at()
  • Loading branch information
rouault committed Jun 2, 2020
1 parent c286746 commit 7b63dc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/pal/problem.cpp
Expand Up @@ -534,6 +534,7 @@ inline Chain *Problem::chain( int seed )


tmpsol[seed] = retainedLabel;
// cppcheck-suppress invalidFunctionArg
delta += mLabelPositions.at( retainedLabel )->cost();
seed = next_seed;
}
Expand Down

0 comments on commit 7b63dc0

Please sign in to comment.