From c958d6389731cb80fc192e04391d8585f1ef729d Mon Sep 17 00:00:00 2001 From: jmt Date: Sat, 20 Jun 2009 09:33:44 +0000 Subject: [PATCH] Fix a warning from GCC - 'ALIAS' was unhandled in the switch stmt. --- simgear/props/condition.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5