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

Fix klocwork issues (#4479)

parent a8a9bcb5
......@@ -130,7 +130,7 @@ namespace ngraph
{
if (remove_goe)
{
while (auto goe = as_type_ptr<op::GetOutputElement>(m_node))
while (is_type<op::GetOutputElement>(m_node))
{
*this = m_node->input_value(0);
}
......@@ -214,7 +214,7 @@ namespace ngraph
{
if (remove_goe)
{
while (auto goe = as_type_ptr<const op::GetOutputElement>(m_node))
while (is_type<const op::GetOutputElement>(m_node))
{
auto value = m_node->input_value(0);
m_node = value.get_node_shared_ptr();
......
......@@ -121,7 +121,7 @@ TEST(type_prop, topk_rank_dynamic_ok)
auto badout = Output<Node>(topk);
FAIL() << "No default output for topk";
}
catch (const NodeValidationFailure& error)
catch (const NodeValidationFailure&)
{
}
}
......
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