Resolve Klocwork issues (#4341)

This commit is contained in:
Mateusz Bencer 2021-02-16 11:55:28 +01:00 committed by GitHub
parent a3af43c8e4
commit cc645d50e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -203,7 +203,8 @@ namespace ngraph
// Set-up parameters from parent graph which are not changed during Loop's // Set-up parameters from parent graph which are not changed during Loop's
// iterations // iterations
for (auto out_from_parent_it = outputs_from_parent.begin(); for (auto out_from_parent_it = outputs_from_parent.begin();
body_inputs_it != body_inputs.end(); body_inputs_it != body_inputs.end() &&
out_from_parent_it != outputs_from_parent.end();
++body_inputs_it, ++out_from_parent_it) ++body_inputs_it, ++out_from_parent_it)
{ {
loop->set_invariant_input(*body_inputs_it, *out_from_parent_it); loop->set_invariant_input(*body_inputs_it, *out_from_parent_it);

View File

@ -45,7 +45,7 @@ namespace ngraph
std::string to_string() const; std::string to_string() const;
private: private:
std::string m_data_location; std::string m_data_location{};
int m_offset = 0; int m_offset = 0;
int m_data_lenght = 0; int m_data_lenght = 0;
int m_sha1_digest = 0; int m_sha1_digest = 0;