aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-11-26 21:07:44 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-11-26 21:07:44 +0100
commit313106d5491c7c6279f3c962348462ca04cd2e0e (patch)
treedfa2c9ebe97279fcdfa365cd17ec74691b94d5f9 /src/nix
parent425991883acafdaf287f9c60b584a49705542642 (diff)
Fix clang warnings
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/command.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh
index 26c15e646..2db22dba2 100644
--- a/src/nix/command.hh
+++ b/src/nix/command.hh
@@ -16,6 +16,7 @@ struct Pos;
run() method. */
struct Command : virtual Args
{
+ virtual ~Command() { }
virtual std::string name() = 0;
virtual void prepare() { };
virtual void run() = 0;
@@ -58,6 +59,8 @@ typedef std::vector<Buildable> Buildables;
struct Installable
{
+ virtual ~Installable() { }
+
virtual std::string what() = 0;
virtual Buildables toBuildables()