Skip to content

Commit

Permalink
Resolve clang warning by removing an unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Sep 25, 2024
1 parent 59fa232 commit 1368e54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Estimators/tests/test_OneBodyDensityMatrices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ TEST_CASE("OneBodyDensityMatrices::OneBodyDensityMatrices", "[estimators]")
TEST_CASE("OneBodyDensityMatrices::generateSamples", "[estimators]")
{
using Input = testing::ValidOneBodyDensityMatricesInput;
Input input;
using MCPWalker = OperatorEstBase::MCPWalker;

ProjectData test_project("test", ProjectData::DriverVersion::BATCH);
Expand All @@ -287,7 +286,7 @@ TEST_CASE("OneBodyDensityMatrices::generateSamples", "[estimators]")
auto& species_set = pset_target.getSpeciesSet();
auto& spo_map = wavefunction_pool.getWaveFunction("wavefunction")->getSPOMap();

auto samplingCaseRunner = [&input, &pset_target, &species_set, &spo_map](Input::valid test_case) {
auto samplingCaseRunner = [&pset_target, &species_set, &spo_map](Input::valid test_case) {
Libxml2Document doc;
bool okay = doc.parseFromString(Input::getXml(test_case));
if (!okay)
Expand Down

0 comments on commit 1368e54

Please sign in to comment.