Skip to content

Commit

Permalink
Shut up some clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed May 30, 2017
1 parent 2ac99a3 commit d552d38
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/libstore/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ class DerivationGoal : public Goal

void repairClosure();

void amDone(ExitCode result)
void amDone(ExitCode result) override
{
logger->event(evBuildFinished, act, result == ecSuccess);
Goal::amDone(result);
Expand Down Expand Up @@ -3288,16 +3288,16 @@ class SubstitutionGoal : public Goal
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();
Expand All @@ -3308,12 +3308,12 @@ class SubstitutionGoal : public Goal
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);
Expand Down

0 comments on commit d552d38

Please sign in to comment.