Skip to content
Snippets Groups Projects

added worksournd for fallthrough compiler warning

Merged Praetorius, Simon requested to merge issue/initfile_parser into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -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);
Loading