From 480556d5d34c7eace684ebd4217d95865120fca5 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 18 Nov 2024 19:22:22 -0800 Subject: [PATCH] Remove unused-variable in language_technology/jedi/moses/TranslationOptionCollectionLattice.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 --- opensfm/src/third_party/akaze/lib/AKAZE.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/opensfm/src/third_party/akaze/lib/AKAZE.cpp b/opensfm/src/third_party/akaze/lib/AKAZE.cpp index d8356a066..34ff21418 100644 --- a/opensfm/src/third_party/akaze/lib/AKAZE.cpp +++ b/opensfm/src/third_party/akaze/lib/AKAZE.cpp @@ -410,7 +410,6 @@ void AKAZE::Find_Scale_Space_Extrema(std::vector& 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_;