build: fix multiple Clang13 warnings
* spot/kripke/kripkegraph.hh, spot/misc/hash.hh, spot/twa/taatgba.cc, spot/twa/twagraph.hh, tests/core/ngraph.cc: Replace subtraction of pointeur minus nullptr by an explicit cast to size_t. * spot/twa/acc.hh: Add explicit default copy assignment operator for rs_pair.
This commit is contained in:
parent
2a408bbed1
commit
81f146f648
6 changed files with 6 additions and 9 deletions
|
|
@ -48,8 +48,7 @@ namespace spot
|
|||
|
||||
size_t operator()(const T* p) const noexcept
|
||||
{
|
||||
return knuth32_hash(reinterpret_cast<const char*>(p)
|
||||
- static_cast<const char*>(nullptr));
|
||||
return knuth32_hash(reinterpret_cast<size_t>(p));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue