aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-21 18:29:55 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-21 18:29:55 +0100
commit94f9c14d526abfe9b18045fc638e8f5a3a670210 (patch)
tree3bdd2cc964314dc48959171a2364d51dbf71f8e2 /src/libstore
parenta26307b28192e61bc06b5f5ef42f0fb51858d822 (diff)
Fix some clang warnings
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc5
-rw-r--r--src/libstore/gc.cc2
2 files changed, 1 insertions, 6 deletions
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