Skip to content

Commit

Permalink
DMRECON: Remove unused variable in PatchOptimization::optimizeDepthAn…
Browse files Browse the repository at this point in the history
…dNormal()

Found by Clang 17.0.6 on Gentoo Linux:

  patch_optimization.cc:316:17: warning: variable 'row' set but not used [-Wunused-but-set-variable]
    316 |     std::size_t row = 0;
        |                 ^
  • Loading branch information
andre-schulz committed Aug 23, 2024
1 parent 8fb6f34 commit 7c50bea
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libs/dmrecon/patch_optimization.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ PatchOptimization::optimizeDepthAndNormal()
math::Vec3d ATb(0.f);
Samples const & mCol = sampler->getMasterColorSamples();
IndexSet::const_iterator id;
std::size_t row = 0;
for (id = neighIDs.begin(); id != neighIDs.end(); ++id)
{
Samples nCol, nDeriv;
Expand Down Expand Up @@ -341,7 +340,6 @@ PatchOptimization::optimizeDepthAndNormal()
ATA(1,2) += a_i[1] * a_i[2];
ATA(2,2) += a_i[2] * a_i[2];
ATb += a_i * b_i;
++row;
}
}
}
Expand Down

0 comments on commit 7c50bea

Please sign in to comment.