diff --git a/simgear/props/condition.cxx b/simgear/props/condition.cxx index da4f20f9..7a382cd3 100644 --- a/simgear/props/condition.cxx +++ b/simgear/props/condition.cxx @@ -213,8 +213,10 @@ doComparison (const SGPropertyNode * left, const SGPropertyNode *right) return SGComparisonCondition::EQUALS; break; } + default: + throw sg_exception("condition: unrecognized node type in comparison"); } - throw sg_exception("condition: unrecognized node type in comparison"); + return 0; }