summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2016-12-28 10:01:53 +0100
committerTom Smeding <tom.smeding@gmail.com>2016-12-28 10:01:53 +0100
commit2690760ccb97324b5856d7d4176d8a949856dec8 (patch)
treea2b03e42c2b5cf514992ae5c2b247530da006605
parent8116da5f88b18591decd8fa53d7be8b354ec1fa9 (diff)
A warning lessHEADmaster
-rw-r--r--ast.cpp1
-rw-r--r--environment.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/ast.cpp b/ast.cpp
index f1cbcc0..4f68a17 100644
--- a/ast.cpp
+++ b/ast.cpp
@@ -1,4 +1,5 @@
#include <stdexcept>
+#include <cstring>
#include <cctype>
#include "ast.h"
diff --git a/environment.cpp b/environment.cpp
index e375353..e49ec94 100644
--- a/environment.cpp
+++ b/environment.cpp
@@ -292,6 +292,9 @@ static bool hasFree(AST &ast,Index fromIndex){
case AST::Type::lambda:
return hasFree(*ast.lambdaval.body,fromIndex+1);
+
+ default:
+ throw logic_error("Unknown AST::Type?");
}
}