Fix some false positives from a stupid compiler. Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
@@ -1209,6 +1209,7 @@ public:
id2 = conn->subscribe(*new CCSub(s.str()));
}
+ throwUnexpected(); // loop never terminates, but some compilers complain about missing return without this line
SubscriptionId id1, id2;
@@ -2970,6 +2970,7 @@ static bool anyXmlGeneratedForPass(IHqlExpression * expr, unsigned pass)
default:
UNIMPLEMENTED;
+ throwUnexpected(); // unreachable, but some compilers will complain about missing return
@@ -566,6 +566,7 @@ protected:
throw MakeStringException(ROXIE_UNIMPLEMENTED_ERROR, "Unimplemented activity %s required", getActivityText(kind));
break;
IActivityFactory *findActivity(unsigned id) const
@@ -134,6 +134,7 @@ public:
lastReport = now;
};