Skip to content
Snippets Groups Projects
Commit fcbdab5b authored by Jordi Inglada's avatar Jordi Inglada
Browse files

BUG: added return statement to suppress warning, but if/then/else

conditions make sure it is never reached
parent db5a0584
Branches
Tags
No related merge requests found
...@@ -135,7 +135,6 @@ DecisionTree<AttributeValueType, LabelType> ...@@ -135,7 +135,6 @@ DecisionTree<AttributeValueType, LabelType>
// if we get here it means that a verified test was not found // if we get here it means that a verified test was not found
itkGenericExceptionMacro(<< "Example could not be handled by decision tree."); itkGenericExceptionMacro(<< "Example could not be handled by decision tree.");
} }
else else
{ {
...@@ -210,7 +209,9 @@ DecisionTree<AttributeValueType, LabelType> ...@@ -210,7 +209,9 @@ DecisionTree<AttributeValueType, LabelType>
} }
} }
//added return statement to suppress warning, but if/then/else
//conditions make sure it is never reached
return static_cast<LabelType>(0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment