aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/daemon.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-07-22 17:15:57 +0200
committereldritch horrors <pennae@lix.systems>2024-07-22 16:26:55 +0000
commitc74eb81356ef0e202713111d621434e46edc27ea (patch)
treea292f39326e0da00685d8d7071789dcd82261187 /src/libstore/daemon.cc
parent0463cf2aefafcbf3762ffdfa6df3f1eb8fa21bfd (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/daemon.cc')
-rw-r--r--src/libstore/daemon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc
index 4162015d6..b09645f46 100644
--- a/src/libstore/daemon.cc
+++ b/src/libstore/daemon.cc
@@ -158,7 +158,7 @@ struct TunnelSink : Sink
{
Sink & to;
TunnelSink(Sink & to) : to(to) { }
- void operator () (std::string_view data)
+ void operator () (std::string_view data) override
{
to << STDERR_WRITE << data;
}