about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-30T12·35+0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-30T12·35+0200
commitd552d387585840f68fcc7507fca83feb6f937a10 (patch)
tree762c729e1f2240a7c2ffdfe8fba3494d6ee593eb
parent2ac99a32dab0d2ea59cb9e926f6d6d5b7ef638c6 (diff)
Shut up some clang warnings
-rw-r--r--src/libstore/build.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 0a10efaed1d6..0a874bbf1cd0 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -906,7 +906,7 @@ private:
 
     void repairClosure();
 
-    void amDone(ExitCode result)
+    void amDone(ExitCode result) override
     {
         logger->event(evBuildFinished, act, result == ecSuccess);
         Goal::amDone(result);
@@ -3288,16 +3288,16 @@ public:
     SubstitutionGoal(const Path & storePath, Worker & worker, bool repair = false);
     ~SubstitutionGoal();
 
-    void timedOut() { abort(); };
+    void timedOut() override { abort(); };
 
-    string key()
+    string key() override
     {
         /* "a$" ensures substitution goals happen before derivation
            goals. */
         return "a$" + storePathToName(storePath) + "$" + storePath;
     }
 
-    void work();
+    void work() override;
 
     /* The states. */
     void init();
@@ -3308,12 +3308,12 @@ public:
     void finished();
 
     /* Callback used by the worker to write to the log. */
-    void handleChildOutput(int fd, const string & data);
-    void handleEOF(int fd);
+    void handleChildOutput(int fd, const string & data) override;
+    void handleEOF(int fd) override;
 
     Path getStorePath() { return storePath; }
 
-    void amDone(ExitCode result)
+    void amDone(ExitCode result) override
     {
         logger->event(evSubstitutionFinished, act, result == ecSuccess);
         Goal::amDone(result);