C++20: fix warnings reported by g++ 10.1

* spot/tl/formula.hh (formula::operator bool): Mark as noexcept.
* bin/common_trans.hh, bin/common_trans.cc: Use std::atomic instead of
volatile.
This commit is contained in:
Alexandre Duret-Lutz 2020-07-16 16:45:28 +02:00
parent a7ff5b4eed
commit 368acaad28
3 changed files with 8 additions and 7 deletions

View file

@ -842,7 +842,7 @@ namespace spot
return ptr_ != nullptr;
}
operator bool() const
operator bool() const noexcept
{
return ptr_ != nullptr;
}