mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-11 20:43:34 +08:00
Braces in complex boolean condition to suppress false positive from the static analyzer
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user