Skip to content

Commit

Permalink
Remove unused-variable in language_technology/jedi/moses/TranslationO…
Browse files Browse the repository at this point in the history
…ptionCollectionLattice.cpp +3

Summary:
LLVM-15 has a warning `-Wunused-variable` which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance.

This diff either (a) removes an unused variable and, possibly, it's associated code or (b) qualifies the variable with `[[maybe_unused]]`.

#buildsonlynotests - Builds are sufficient

 - If you approve of this diff, please use the "Accept & Ship" button :-)

Reviewed By: wuyuoss

Differential Revision: D66143547

fbshipit-source-id: be5d1696be4454358dd919e283f5e2d44a1c1f73
  • Loading branch information
r-barnes authored and facebook-github-bot committed Nov 19, 2024
1 parent c83b97d commit 480556d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion opensfm/src/third_party/akaze/lib/AKAZE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ void AKAZE::Find_Scale_Space_Extrema(std::vector<cv::KeyPoint>& kpts) {
if (kpts[i].response < kpts[j].response) {
float dx_ = kpts[j].pt.x - kpts[i].pt.x;
float dy_ = kpts[j].pt.y - kpts[i].pt.y;
float sigma_ = kpts[j].size;
float radius_ = dx_ * dx_ + dy_ * dy_; // TODO(pau) use sigma to compute a 3d radius
if (radius_ < radius) {
radius = radius_;
Expand Down

0 comments on commit 480556d

Please sign in to comment.