Unverified Commit b95c25f6 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Klocwork issues (#4442)

parent d36a88ed
...@@ -116,7 +116,6 @@ std::shared_ptr<Node> Node::copy_with_new_args(const NodeVector& args) const ...@@ -116,7 +116,6 @@ std::shared_ptr<Node> Node::copy_with_new_args(const NodeVector& args) const
{ {
NODE_VALIDATION_CHECK( NODE_VALIDATION_CHECK(
this, false, "Internal error: copy_with_new_args not replaced by clone_with_new_inputs"); this, false, "Internal error: copy_with_new_args not replaced by clone_with_new_inputs");
return nullptr;
} }
std::shared_ptr<Node> Node::clone_with_new_inputs(const OutputVector& inputs) const std::shared_ptr<Node> Node::clone_with_new_inputs(const OutputVector& inputs) const
......
...@@ -558,6 +558,7 @@ namespace ngraph ...@@ -558,6 +558,7 @@ namespace ngraph
} }
RawNodeOutput(const RawNodeOutput&) = default; RawNodeOutput(const RawNodeOutput&) = default;
RawNodeOutput() = default; RawNodeOutput() = default;
RawNodeOutput& operator=(const RawNodeOutput&) = default;
Node* node; Node* node;
size_t index{0}; size_t index{0};
......
...@@ -94,6 +94,7 @@ namespace ngraph ...@@ -94,6 +94,7 @@ namespace ngraph
Constant(const element::Type& type, const Shape& shape, const void* data); Constant(const element::Type& type, const Shape& shape, const void* data);
Constant(const Constant& other); Constant(const Constant& other);
Constant& operator=(const Constant&) = delete;
virtual ~Constant() override; virtual ~Constant() override;
......
...@@ -575,7 +575,7 @@ bool pass::AlgebraicSimplification::run_on_function(shared_ptr<Function> f) ...@@ -575,7 +575,7 @@ bool pass::AlgebraicSimplification::run_on_function(shared_ptr<Function> f)
auto eh = ops_to_simplifiers.find(n->get_type_info()); auto eh = ops_to_simplifiers.find(n->get_type_info());
if (eh != ops_to_simplifiers.end()) if (eh != ops_to_simplifiers.end())
{ {
replaced |= eh->second(n); replaced = eh->second(n) || replaced;
} }
} }
return replaced; return replaced;
......
...@@ -84,7 +84,7 @@ namespace ngraph ...@@ -84,7 +84,7 @@ namespace ngraph
"Input data shape must be provided, if shape defined in Functions is " "Input data shape must be provided, if shape defined in Functions is "
"not fully known."); "not fully known.");
return add_input<T>(input_pshape.to_shape(), values); add_input<T>(input_pshape.to_shape(), values);
} }
template <typename T> template <typename T>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment