From 6062b121605b298c73ddf11688b075ed78a46df2 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 20 Oct 2014 12:15:50 -0400 Subject: Fix build on gcc < 4.7 --- src/libexpr/eval.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libexpr/eval.hh') diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index daf53846ffd5..51ab1b1e8012 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -340,6 +340,9 @@ struct InvalidPathError : EvalError { Path path; InvalidPathError(const Path & path); +#ifdef EXCEPTION_NEEDS_THROW_SPEC + ~InvalidPathError() throw () { }; +#endif }; /* Realise all paths in `context' */ -- cgit 1.4.1