about summary refs log tree commit diff
path: root/src/libstore/s3-binary-cache-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-05-31T11·31+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-05-31T11·31+0200
commita9fa5e050aaebe852ea5dd5c2622062db15ba3ac (patch)
treeae32a1ee0e41a03c71141700e69c5ef8d485744d /src/libstore/s3-binary-cache-store.cc
parent10f3a2e5f213df4a1d50947066613bf87a5a1008 (diff)
Shut up some clang warnings
Diffstat (limited to 'src/libstore/s3-binary-cache-store.cc')
-rw-r--r--src/libstore/s3-binary-cache-store.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc
index 6ee27b48d6..371bf24fd4 100644
--- a/src/libstore/s3-binary-cache-store.cc
+++ b/src/libstore/s3-binary-cache-store.cc
@@ -56,7 +56,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
         diskCache = getNarInfoDiskCache();
     }
 
-    std::string getUri()
+    std::string getUri() override
     {
         return "s3://" + bucketName;
     }
@@ -69,7 +69,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
         return res;
     }
 
-    void init()
+    void init() override
     {
         if (!diskCache->cacheExists(getUri())) {
 
@@ -108,7 +108,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
        fetches the .narinfo file, rather than first checking for its
        existence via a HEAD request. Since .narinfos are small, doing
        a GET is unlikely to be slower than HEAD. */
-    bool isValidPathUncached(const Path & storePath)
+    bool isValidPathUncached(const Path & storePath) override
     {
         try {
             queryPathInfo(storePath);
@@ -118,7 +118,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
         }
     }
 
-    bool fileExists(const std::string & path)
+    bool fileExists(const std::string & path) override
     {
         stats.head++;
 
@@ -138,7 +138,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
         return true;
     }
 
-    void upsertFile(const std::string & path, const std::string & data)
+    void upsertFile(const std::string & path, const std::string & data) override
     {
         auto request =
             Aws::S3::Model::PutObjectRequest()
@@ -167,7 +167,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
         stats.putTimeMs += duration;
     }
 
-    std::shared_ptr<std::string> getFile(const std::string & path)
+    std::shared_ptr<std::string> getFile(const std::string & path) override
     {
         debug(format("fetching ‘s3://%1%/%2%’...") % bucketName % path);