Braces in complex boolean condition to suppress false positive from the static analyzer

This commit is contained in:
Pavel Kirienko
2014-04-19 22:55:57 +04:00
parent 5fcfd7726b
commit 0fd24fd6b0
@@ -45,7 +45,7 @@ struct UAVCAN_EXPORT ServiceCallResult
, response(arg_response)
{
assert(server_node_id.isUnicast());
assert(status == Success || status == ErrorTimeout);
assert((status == Success) || (status == ErrorTimeout));
}
bool isSuccessful() const { return status == Success; }