about summary refs log tree commit diff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-09T10·14+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-09T10·14+0200
commit0e5d0c15430cf82861a1ae213cbccff065f71107 (patch)
tree186a3d3eb7704a21ef265bee4a49785d9885b413 /src/libexpr/primops.cc
parentbeac05c206a801be6f83b4eaaffe75c30eeb7d37 (diff)
Fix compilation error on some versions of GCC
src/libexpr/primops.cc:42:8: error: looser throw specifier for 'virtual nix::InvalidPathError::~InvalidPathError()'
src/libexpr/nixexpr.hh:12:1: error:   overriding 'virtual nix::EvalError::~EvalError() noexcept (true)'

http://hydra.nixos.org/build/12385750
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 01c7ca444119..543266b22aa1 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -44,6 +44,7 @@ struct InvalidPathError : EvalError
     Path path;
     InvalidPathError(const Path & path) :
         EvalError(format("path `%1%' is not valid") % path), path(path) {};
+    ~InvalidPathError() throw () { };
 };