From 9f3872c32a28a48d16a9073e51dace86bd6ea06b Mon Sep 17 00:00:00 2001 From: "Praetorius, Simon" <simon.praetorius@tu-dresden.de> Date: Wed, 21 Aug 2019 21:02:59 +0200 Subject: [PATCH] added worksournd for fallthrough compiler warning --- src/amdis/InitfileParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amdis/InitfileParser.cpp b/src/amdis/InitfileParser.cpp index 39e6ab63..41349f0f 100644 --- a/src/amdis/InitfileParser.cpp +++ b/src/amdis/InitfileParser.cpp @@ -67,12 +67,12 @@ void InitfileParser::readInitfile(std::istream& in, Dune::ParameterTree& pt, boo std::size_t pos = sw.find_first_not_of(whitespaces, pos0 + std::string("#include").size() + 1); std::size_t epos = 0; std::string fn = ""; + std::map<char,char> closing = { {'<','>'}, {'\"', '\"'} }; + switch (char c = swap[pos++]) { case '<': - c= '>'; - // [[fallthrough]]; case '\"': - delimiter += c; + delimiter += closing[c]; epos = sw.find_first_of(delimiter, pos); fn = sw.substr(pos, epos - pos); -- GitLab