about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-10-20T16·15-0400
committerShea Levy <shea@shealevy.com>2014-10-20T16·15-0400
commit6062b121605b298c73ddf11688b075ed78a46df2 (patch)
tree52ea9d76a92e7a159c43e781ad12438e431234bf /src/libexpr
parentf040159f77e518e5eda87a0c092e6c20d87a572b (diff)
Fix build on gcc < 4.7
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/eval.hh3
1 files changed, 3 insertions, 0 deletions
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' */