address a new g++-10 warnings
* spot/twa/twa.hh (set_named_prop): Declare the lambda as noexcept. * spot/twaalgos/couvreurnew.cc (acss_states): Likewise.
This commit is contained in:
parent
da9d92eef7
commit
6243803018
2 changed files with 3 additions and 2 deletions
|
|
@ -1120,7 +1120,8 @@ namespace spot
|
|||
template<typename T>
|
||||
void set_named_prop(std::string s, T* val)
|
||||
{
|
||||
set_named_prop(s, val, [](void *p) { delete static_cast<T*>(p); });
|
||||
set_named_prop(s, val,
|
||||
[](void *p) noexcept { delete static_cast<T*>(p); });
|
||||
}
|
||||
|
||||
/// \brief Erase a named property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue