From: jmt Date: Sat, 20 Jun 2009 09:33:44 +0000 (+0000) Subject: Fix a warning from GCC - 'ALIAS' was unhandled in the switch stmt. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c958d6389731cb80fc192e04391d8585f1ef729d;p=simgear.git Fix a warning from GCC - 'ALIAS' was unhandled in the switch stmt. --- 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; }