Commit fb5c14f2 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/initfile_parser' into 'master'

added worksournd for fallthrough compiler warning

See merge request amdis/amdis-core!89
parents 4b8a0bba 9f3872c3
......@@ -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);
......
Supports Markdown
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