mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 13:57:35 +08:00
Strict warnings in the unit tests. This commit needs to be carefully reviewed.
This commit is contained in:
@@ -156,7 +156,7 @@ struct InterlinkedTestNodes
|
||||
int spinBoth(uavcan::MonotonicDuration duration)
|
||||
{
|
||||
assert(!duration.isNegative());
|
||||
unsigned nspins2 = duration.toMSec() / 2;
|
||||
unsigned nspins2 = unsigned(duration.toMSec() / 2);
|
||||
nspins2 = nspins2 ? nspins2 : 1;
|
||||
while (nspins2 --> 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user