[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/118: Fix bogus warnings about dumping large paths
From: |
Ludovic Courtès |
Subject: |
25/118: Fix bogus warnings about dumping large paths |
Date: |
Tue, 19 May 2015 14:45:22 +0000 |
civodul pushed a commit to branch nix
in repository guix.
commit 48495f67ed893c4ee056099ae0ca5a2afacde93c
Author: Eelco Dolstra <address@hidden>
Date: Thu Jun 12 13:15:35 2014 +0200
Fix bogus warnings about dumping large paths
Also, yay for C++11 non-static initialisers.
---
src/libutil/serialise.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh
index 3d296cf..1b3fb74 100644
--- a/src/libutil/serialise.hh
+++ b/src/libutil/serialise.hh
@@ -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) { }
- 14/118: Use std::unordered_set, (continued)
- 14/118: Use std::unordered_set, Ludovic Courtès, 2015/05/19
- 13/118: nix-build: --add-root also takes 1 parameter, Ludovic Courtès, 2015/05/19
- 16/118: Fix test, Ludovic Courtès, 2015/05/19
- 15/118: Sort nixPath attributes, Ludovic Courtès, 2015/05/19
- 10/118: Remove ExprBuiltin, Ludovic Courtès, 2015/05/19
- 09/118: Make the Nix search path declarative, Ludovic Courtès, 2015/05/19
- 04/118: Ugly hack to allow --argstr values starting with a dash, Ludovic Courtès, 2015/05/19
- 19/118: Report daemon OOM better, Ludovic Courtès, 2015/05/19
- 06/118: Add primop ‘scopedImport’, Ludovic Courtès, 2015/05/19
- 21/118: Add autoloads, make code more concise & idiomatic, Ludovic Courtès, 2015/05/19
- 25/118: Fix bogus warnings about dumping large paths,
Ludovic Courtès <=
- 20/118: == operator: Ignore string context, Ludovic Courtès, 2015/05/19
- 17/118: nix-env -qa --json: Generate valid JSON even if there are invalid meta attrs, Ludovic Courtès, 2015/05/19
- 23/118: findFile: Realise the context of the path attributes, Ludovic Courtès, 2015/05/19
- 11/118: Rephrase @ operator description, Ludovic Courtès, 2015/05/19
- 29/118: Merge branch 'shlevy-import-native', Ludovic Courtès, 2015/05/19
- 12/118: dev-shell is a bash script, not sh, Ludovic Courtès, 2015/05/19
- 22/118: Share code between scopedImport and import, Ludovic Courtès, 2015/05/19
- 26/118: Don't use member initialisers, Ludovic Courtès, 2015/05/19
- 31/118: Add `--json` argument to `nix-instantiate`, Ludovic Courtès, 2015/05/19
- 18/118: Print a warning when loading a large path into memory, Ludovic Courtès, 2015/05/19