diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-09-02 17:43:27 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-09-02 17:43:27 +0200 |
commit | c693f80b814c244dcdae7a2e87fb9e444d9d1ca5 (patch) | |
tree | 98c489cde733646d771e7509b5ea0d30ec84ee04 /src | |
parent | 61fdb16aacf9ff18c96b72a37e1b46eb14586eb4 (diff) |
Shut up some clang warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/args.hh | 2 | ||||
-rw-r--r-- | src/nix/command.hh | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh index a083c4ce8..b960a55a8 100644 --- a/src/libutil/args.hh +++ b/src/libutil/args.hh @@ -199,6 +199,8 @@ private: public: + virtual ~Command() { } + std::string name() { return _name; } virtual void prepare() { }; diff --git a/src/nix/command.hh b/src/nix/command.hh index 00c202f20..92f606bbe 100644 --- a/src/nix/command.hh +++ b/src/nix/command.hh @@ -49,6 +49,8 @@ struct App struct Installable { + virtual ~Installable() { } + virtual std::string what() = 0; virtual Buildables toBuildables() |