diff options
author | eldritch horrors <pennae@lix.systems> | 2024-07-22 17:15:57 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-22 16:26:55 +0000 |
commit | c74eb81356ef0e202713111d621434e46edc27ea (patch) | |
tree | a292f39326e0da00685d8d7071789dcd82261187 /src/libstore/build/local-derivation-goal.cc | |
parent | 0463cf2aefafcbf3762ffdfa6df3f1eb8fa21bfd (diff) |
enable -Werror=suggest-override
*accidentally* overriding a function is almost guaranteed to be an
error. overriding a function without labeling it as such is merely
bad style, but bad style that makes the code harder to understand.
Change-Id: Ic0594f3d1604ab6b3c1a75cb5facc246effe45f0
Diffstat (limited to 'src/libstore/build/local-derivation-goal.cc')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index 660512e49..7d1d339e8 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -976,7 +976,7 @@ bool LocalDerivationGoal::isAllowed(const DerivedPath & req) struct RestrictedStoreConfig : virtual LocalFSStoreConfig { using LocalFSStoreConfig::LocalFSStoreConfig; - const std::string name() { return "Restricted Store"; } + const std::string name() override { return "Restricted Store"; } }; /* A wrapper around LocalStore that only allows building/querying of |