Fixes suggested by static analyzer

This commit is contained in:
Pavel Kirienko
2014-04-18 18:46:47 +04:00
parent 1bac8d6561
commit bfe1447426
3 changed files with 3 additions and 2 deletions
@@ -136,7 +136,7 @@ public:
~DynamicTransferBufferManagerEntry()
{
resetImpl();
DynamicTransferBufferManagerEntry::resetImpl();
}
static DynamicTransferBufferManagerEntry* instantiate(IPoolAllocator& allocator, uint16_t max_size);
+1
View File
@@ -113,6 +113,7 @@ std::string CanFrame::toString(StringRepresentation mode) const
}
wpos += snprintf(wpos, epos - wpos, "\'");
}
(void)wpos;
return std::string(buf);
}
#endif
+1 -1
View File
@@ -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