Work around spurious g++-12 warnings
* spot/twaalgos/ltl2tgba_fm.cc, spot/tl/formula.hh, spot/twaalgos/translate.cc: Add SPOT_ASSUME in various places to help g++.
This commit is contained in:
parent
720c380412
commit
1248d326aa
3 changed files with 19 additions and 9 deletions
|
|
@ -294,7 +294,9 @@ namespace spot
|
|||
{
|
||||
if (SPOT_UNLIKELY(i >= size()))
|
||||
report_non_existing_child();
|
||||
return children[i];
|
||||
const fnode* c = children[i];
|
||||
SPOT_ASSUME(c != nullptr);
|
||||
return c;
|
||||
}
|
||||
|
||||
/// \see formula::ff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue