mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 04:40:35 +08:00
Strict warnings in the unit tests. This commit needs to be carefully reviewed.
This commit is contained in:
@@ -38,7 +38,7 @@ struct GlobalTimeSyncTestNetwork
|
||||
void spinAll(uavcan::MonotonicDuration duration = uavcan::MonotonicDuration::fromMSec(9))
|
||||
{
|
||||
assert(!duration.isNegative());
|
||||
unsigned nspins3 = duration.toMSec() / 3;
|
||||
unsigned nspins3 = unsigned(duration.toMSec() / 3);
|
||||
nspins3 = nspins3 ? nspins3 : 2;
|
||||
while (nspins3 --> 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user