From a8507628fa935ffdf88a1edb397997d8bd3df1dd Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 22 Sep 2015 10:12:17 +0200 Subject: [PATCH] Fix warnings: -Wuninitialized in expression engine --- src/App/Expression.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App/Expression.cpp b/src/App/Expression.cpp index 2e61cdc9c..053aeca71 100644 --- a/src/App/Expression.cpp +++ b/src/App/Expression.cpp @@ -372,6 +372,7 @@ Expression * OperatorExpression::eval() const output = new NumberExpression(owner, v1->getQuantity() ); break; default: + output = 0; assert(0); } @@ -783,6 +784,7 @@ Expression * FunctionExpression::eval() const output = floor(value); break; default: + output = 0; assert(0); }