Skip to content
Snippets Groups Projects
Commit 9f3872c3 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

added worksournd for fallthrough compiler warning

parent 4b8a0bba
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment