[Caching] Klocwork fixes (#6157)

This commit is contained in:
Mikhail Nosov 2021-06-15 22:40:46 +03:00 committed by GitHub
parent a16af0d2ea
commit 0981a15846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ static int32_t as_int32_t(T v) {
}
class OstreamHashWrapper final: public std::streambuf {
std::size_t m_res = {};
std::size_t m_res = 0;
public:
std::size_t getResult() const { return m_res; }
std::streamsize xsputn(const char* s, std::streamsize n) override {
@ -65,7 +65,7 @@ public:
//////////////////////////////////////////////////
std::string NetworkCompilationContext::calculateFileInfo(const std::string& filePath) {
size_t seed {};
size_t seed = 0;
auto absPath = filePath;
try {
absPath = FileUtils::absoluteFilePath(filePath);