Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
9f3872c3
Commit
9f3872c3
authored
Aug 21, 2019
by
Praetorius, Simon
Browse files
added worksournd for fallthrough compiler warning
parent
4b8a0bba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/InitfileParser.cpp
View file @
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
+=
c
losing
[
c
]
;
epos
=
sw
.
find_first_of
(
delimiter
,
pos
);
fn
=
sw
.
substr
(
pos
,
epos
-
pos
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment