mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 04:43:33 +08:00
Fixes suggested by static analyzer
This commit is contained in:
@@ -136,7 +136,7 @@ public:
|
||||
|
||||
~DynamicTransferBufferManagerEntry()
|
||||
{
|
||||
resetImpl();
|
||||
DynamicTransferBufferManagerEntry::resetImpl();
|
||||
}
|
||||
|
||||
static DynamicTransferBufferManagerEntry* instantiate(IPoolAllocator& allocator, uint16_t max_size);
|
||||
|
||||
@@ -113,6 +113,7 @@ std::string CanFrame::toString(StringRepresentation mode) const
|
||||
}
|
||||
wpos += snprintf(wpos, epos - wpos, "\'");
|
||||
}
|
||||
(void)wpos;
|
||||
return std::string(buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -220,7 +220,7 @@ std::string Frame::toString() const
|
||||
ofs += snprintf(buf + ofs, BUFLEN - ofs, " ");
|
||||
}
|
||||
}
|
||||
ofs += snprintf(buf + ofs, BUFLEN - ofs, "]");
|
||||
(void)snprintf(buf + ofs, BUFLEN - ofs, "]");
|
||||
return std::string(buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user