Coverity 1304857 1304856 1304855

This commit is contained in:
Pavel Kirienko
2015-06-10 13:17:40 +03:00
parent 4d9e3b1131
commit a1cf761917
3 changed files with 3 additions and 1 deletions
@@ -84,6 +84,7 @@ static void runForever(const uavcan_linux::NodePtr& node)
auto do_nothing_once_a_minute = [&node](const uavcan::TimerEvent&)
{
node->logInfo("timer", "Another minute passed...");
// coverity[dont_call]
node->setVendorSpecificStatusCode(static_cast<std::uint16_t>(std::rand())); // Setting to an arbitrary value
};
auto timer = node->makeTimer(uavcan::MonotonicDuration::fromMSec(60000), do_nothing_once_a_minute);