Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed klockwork issue #5898

Merged
merged 1 commit into from
May 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ bool ngraph::pass::AddPreprocessing::run_on_function(std::shared_ptr<ngraph::Fun
NGRAPH_CHECK(meanImage->getTensorDesc().getPrecision() == InferenceEngine::Precision::FP32,
"Only InferenceEngine::Precision::FP32 precision is supported for PreProcessChannel::meanData");
} else {
NGRAPH_CHECK(pInfo[c]->meanData != nullptr, "pInfo[c]->meanData is nullptr");
NGRAPH_CHECK(meanImage->getTensorDesc() == pInfo[c]->meanData->getTensorDesc(), "TensorDesc for PreProcessChannel::meanData must be equal");
}
}
Expand Down
11 changes: 11 additions & 0 deletions inference-engine/include/ie_version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ struct Version {
major = _major;
minor = _minor;
}

/**
* @brief A copy operator
* @param other An object to copy
* @return A copy
*/
ApiVersion& operator=(const ApiVersion& other) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace copy ctor above with ApiVersion(const ApiVersion & v) = default; or try to remove copy ctor at all (C++ compiler will create "Implicitly-declared copy constructor").

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Msvc complains about deprecated api in automatically generated code

major = other.major;
minor = other.minor;
return *this;
}
};

/**
Expand Down