From 94f9c14d526abfe9b18045fc638e8f5a3a670210 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 21 Jan 2014 18:29:55 +0100 Subject: Fix some clang warnings --- src/libstore/build.cc | 5 +---- src/libstore/gc.cc | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/libstore') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 4329d9a22..1b379752f 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -75,12 +75,9 @@ using std::map; static string pathNullDevice = "/dev/null"; -static const uid_t rootUserId = 0; - - /* Forward definition. */ class Worker; -class HookInstance; +struct HookInstance; /* A pointer to a goal. */ diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index d212259f3..79bd7d56b 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -22,8 +22,6 @@ static string gcLockName = "gc.lock"; static string tempRootsDir = "temproots"; static string gcRootsDir = "gcroots"; -static const int defaultGcLevel = 1000; - /* Acquire the global GC lock. This is used to prevent new Nix processes from starting after the temporary root files have been -- cgit v1.2.3