aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-09-24 17:28:18 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-09-24 17:28:18 +0200
commitc32bba748902a8603036744d4ebccc134f02958c (patch)
treec53bc0aab2e354a1652e5dc26bd2e5b5076240d3
parent382aa05ff71b61379f5c2792eaf517bdf4a5c5bf (diff)
Shut up some warnings
-rw-r--r--src/libstore/nar-info-disk-cache.hh2
-rw-r--r--src/libstore/sqlite.hh4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/libstore/nar-info-disk-cache.hh b/src/libstore/nar-info-disk-cache.hh
index 88d909732..0646d5a94 100644
--- a/src/libstore/nar-info-disk-cache.hh
+++ b/src/libstore/nar-info-disk-cache.hh
@@ -10,6 +10,8 @@ class NarInfoDiskCache
public:
typedef enum { oValid, oInvalid, oUnknown } Outcome;
+ virtual ~NarInfoDiskCache() { }
+
virtual void createCache(const std::string & uri, const Path & storeDir,
bool wantMassQuery, int priority) = 0;
diff --git a/src/libstore/sqlite.hh b/src/libstore/sqlite.hh
index 78e53fa32..0f46f6a07 100644
--- a/src/libstore/sqlite.hh
+++ b/src/libstore/sqlite.hh
@@ -5,8 +5,8 @@
#include "types.hh"
-class sqlite3;
-class sqlite3_stmt;
+struct sqlite3;
+struct sqlite3_stmt;
namespace nix {