The TS-GitLab will have to shut down towards the end of the year — please think about migrating your projects to GitLab.com or GitHub.
(This is still a very early message, meant to keep you informed. There will be more urgent ones in the future.)

Commit 7767b1cf authored by Lukas Riedel's avatar Lukas Riedel 🎧
Browse files

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) ...@@ -22,6 +22,7 @@ int main(int argc, char** argv)
try{ try{
// Initialize ALL the things! // Initialize ALL the things!
auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv); auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv);
log.reset(); // silence compiler warning
const auto dimensions = inifile.get<int>("grid.dimensions"); const auto dimensions = inifile.get<int>("grid.dimensions");
if (dimensions == 2) { if (dimensions == 2) {
......
...@@ -45,6 +45,7 @@ int main (int argc, char** argv) ...@@ -45,6 +45,7 @@ int main (int argc, char** argv)
try{ try{
// Initialize ALL the things! // Initialize ALL the things!
auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv); auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv);
log.reset(); // silence compiler warning
// setup richards configuration // setup richards configuration
Dune::ParameterTree richards_config = Dune::Dorie::Setup::prep_ini_for_richards(inifile); Dune::ParameterTree richards_config = Dune::Dorie::Setup::prep_ini_for_richards(inifile);
......
...@@ -37,6 +37,7 @@ int main (int argc, char** argv) ...@@ -37,6 +37,7 @@ int main (int argc, char** argv)
try{ try{
// Initialize ALL the things! // Initialize ALL the things!
auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv); auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv);
log.reset(); // silence compiler warning
// setup richards configuration // setup richards configuration
Dune::ParameterTree richards_config = Dune::Dorie::Setup::prep_ini_for_richards(inifile); Dune::ParameterTree richards_config = Dune::Dorie::Setup::prep_ini_for_richards(inifile);
......
...@@ -51,6 +51,7 @@ int main(int argc, char** argv) { ...@@ -51,6 +51,7 @@ int main(int argc, char** argv) {
// Initialize ALL the things! // Initialize ALL the things!
auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv); auto [inifile, log, helper] = Dune::Dorie::Setup::init(argc, argv);
log.reset(); // silence compiler warning
auto inifile_transport = inifile.sub("transport"); 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