about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2017-11-15T11·31+0100
committerGitHub <noreply@github.com>2017-11-15T11·31+0100
commit897ca33a1c5df5da77e854dd7dd88dadea4681c8 (patch)
tree4adb21658d61390e664cdd202cf6b5e14b518c8e /src
parent27131866c929d2fc7690bc7f177375df9af8e213 (diff)
parent9d7ce0bf45fe4b77f5483929609faad25a66ab8e (diff)
Merge pull request #1678 from dtzWill/feature/anchor-exit-exception
anchor nix::Exit exception
Diffstat (limited to 'src')
-rw-r--r--src/libmain/shared.cc1
-rw-r--r--src/libmain/shared.hh1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 0f599f388585..85d3c077ba5e 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -369,5 +369,6 @@ PrintFreed::~PrintFreed()
             % showBytes(results.bytesFreed);
 }
 
+Exit::~Exit() { }
 
 }
diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh
index 9219dbed8325..1dcc4f0ac942 100644
--- a/src/libmain/shared.hh
+++ b/src/libmain/shared.hh
@@ -17,6 +17,7 @@ public:
     int status;
     Exit() : status(0) { }
     Exit(int status) : status(status) { }
+    virtual ~Exit();
 };
 
 int handleExceptions(const string & programName, std::function<void()> fun);