Silence warnings.

- One class vs struct declaration.
 - Unused variables in a test.
This commit is contained in:
Atgeirr Flø Rasmussen
2020-02-21 10:49:41 +01:00
parent 7b145e360f
commit f35529d7ff
2 changed files with 5 additions and 5 deletions

View File

@@ -472,8 +472,8 @@ BOOST_AUTO_TEST_CASE(GCONINJE_MULTIPLE_PHASES) {
BOOST_CHECK( g1.hasInjectionControl(Phase::GAS));
BOOST_CHECK( !g1.hasInjectionControl(Phase::OIL));
const auto& wc = g1.injectionControls(Phase::WATER, st);
const auto& gc = g1.injectionControls(Phase::GAS, st);
g1.injectionControls(Phase::WATER, st);
g1.injectionControls(Phase::GAS, st);
BOOST_CHECK_THROW(g1.injectionControls(Phase::OIL, st), std::out_of_range);
BOOST_CHECK(g1.has_topup_phase());
@@ -491,8 +491,8 @@ BOOST_AUTO_TEST_CASE(GCONINJE_MULTIPLE_PHASES) {
BOOST_CHECK( g2.hasInjectionControl(Phase::GAS));
BOOST_CHECK( !g2.hasInjectionControl(Phase::OIL));
const auto& wc = g2.injectionControls(Phase::WATER, st);
const auto& gc = g2.injectionControls(Phase::GAS, st);
g2.injectionControls(Phase::WATER, st);
g2.injectionControls(Phase::GAS, st);
BOOST_CHECK_THROW(g2.injectionControls(Phase::OIL, st), std::out_of_range);
BOOST_CHECK(g2.has_topup_phase());