Merge pull request #134 from ogdf/explicit-fallthroughs
Silence g++ 7.0.1 -Wimplicit-fallthrough warnings
This commit is contained in:
commit
640c94f90d
@ -10110,10 +10110,9 @@ PUGI__NS_BEGIN
|
|||||||
|
|
||||||
if (_rettype == xpath_type_boolean)
|
if (_rettype == xpath_type_boolean)
|
||||||
return _data.variable->get_boolean();
|
return _data.variable->get_boolean();
|
||||||
|
|
||||||
// fallthrough to type conversion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fallthrough
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
switch (_rettype)
|
switch (_rettype)
|
||||||
@ -10246,10 +10245,9 @@ PUGI__NS_BEGIN
|
|||||||
|
|
||||||
if (_rettype == xpath_type_number)
|
if (_rettype == xpath_type_number)
|
||||||
return _data.variable->get_number();
|
return _data.variable->get_number();
|
||||||
|
|
||||||
// fallthrough to type conversion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fallthrough
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
switch (_rettype)
|
switch (_rettype)
|
||||||
@ -10538,10 +10536,9 @@ PUGI__NS_BEGIN
|
|||||||
|
|
||||||
if (_rettype == xpath_type_string)
|
if (_rettype == xpath_type_string)
|
||||||
return xpath_string::from_const(_data.variable->get_string());
|
return xpath_string::from_const(_data.variable->get_string());
|
||||||
|
|
||||||
// fallthrough to type conversion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fallthrough
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
switch (_rettype)
|
switch (_rettype)
|
||||||
@ -10688,10 +10685,9 @@ PUGI__NS_BEGIN
|
|||||||
|
|
||||||
return ns;
|
return ns;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fallthrough to type conversion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fallthrough
|
||||||
default:
|
default:
|
||||||
assert(false && "Wrong expression for return type node set");
|
assert(false && "Wrong expression for return type node set");
|
||||||
return xpath_node_set_raw();
|
return xpath_node_set_raw();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user