Commit a55801c2 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

fix some g++-snapshot warnings

* spot/twaalgos/couvreurnew.cc: explicit operator bool is not used by
return.
parent 7c8d5264
......@@ -613,14 +613,14 @@ namespace spot
}
// Handy cast operators.
// Note that a pointer can be cast to a Boolean as usual.
operator bool() const
{
if (tag == BOOL)
return res;
else
return ecr;
return !!ecr;
}
operator emptiness_check_result_ptr() const
{
if (tag == PTR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment