mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 16:52:27 +00:00
Fix bogus warnings about dumping large paths
Also, yay for C++11 non-static initialisers.
This commit is contained in:
parent
0960d674d4
commit
48495f67ed
@ -72,8 +72,8 @@ struct BufferedSource : Source
|
||||
struct FdSink : BufferedSink
|
||||
{
|
||||
int fd;
|
||||
bool warn;
|
||||
size_t written;
|
||||
bool warn = false;
|
||||
size_t written = 0;
|
||||
|
||||
FdSink() : fd(-1) { }
|
||||
FdSink(int fd) : fd(fd) { }
|
||||
|
Loading…
Reference in New Issue
Block a user