mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02:00
add werror=suggest-override
Improves code readability by making overrides explicit. Inspired by lix code-base
This commit is contained in:
parent
2c07ea8abb
commit
63e50a4b56
9 changed files with 25 additions and 23 deletions
|
@ -167,7 +167,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;
|
||||
writeString(data, to);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue