Commit 7767b1cf authored by Lukas Riedel's avatar Lukas Riedel 📝

Silence compiler warnings by resetting logger in tests

Compiler complained about unused variables. Use the variable by
discarding it.
parent 39538cda
......@@ -22,6 +22,7 @@ int main(int argc, char** argv)
try{
// Initialize ALL the things!
auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv);
log.reset(); // silence compiler warning
const auto dimensions = inifile.get<int>("grid.dimensions");
if (dimensions == 2) {
......
......@@ -45,6 +45,7 @@ int main (int argc, char** argv)
try{
// Initialize ALL the things!
auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv);
log.reset(); // silence compiler warning
// setup richards configuration
Dune::ParameterTree richards_config = Dune::Dorie::Setup::prep_ini_for_richards(inifile);
......
......@@ -37,6 +37,7 @@ int main (int argc, char** argv)
try{
// Initialize ALL the things!
auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv);
log.reset(); // silence compiler warning
// setup richards configuration
Dune::ParameterTree richards_config = Dune::Dorie::Setup::prep_ini_for_richards(inifile);
......
......@@ -51,6 +51,7 @@ int main(int argc, char** argv) {
// Initialize ALL the things!
auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv);
log.reset(); // silence compiler warning
auto inifile_transport = inifile.sub("transport");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment