From 2690760ccb97324b5856d7d4176d8a949856dec8 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 28 Dec 2016 10:01:53 +0100 Subject: A warning less --- ast.cpp | 1 + environment.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ast.cpp b/ast.cpp index f1cbcc0..4f68a17 100644 --- a/ast.cpp +++ b/ast.cpp @@ -1,4 +1,5 @@ #include +#include #include #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?"); } } -- cgit v1.2.3-70-g09d2