diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-09-18 01:22:06 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-09-18 01:22:35 +0200 |
commit | 4ba6bc184c80dbab1b52710c57ba3b926cfbef66 (patch) | |
tree | 4b786c557649b66b2c2dbd27b1b5b0021ee35633 /src/nix-env/nix-env.cc | |
parent | 3d91bfc8f89aab67eb1e92575edf7aacb7f5db25 (diff) |
Shut up clang warnings
Diffstat (limited to 'src/nix-env/nix-env.cc')
-rw-r--r-- | src/nix-env/nix-env.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc index 400b148e9..313f8a8a8 100644 --- a/src/nix-env/nix-env.cc +++ b/src/nix-env/nix-env.cc @@ -1277,7 +1277,7 @@ static void opDeleteGenerations(Globals & globals, Strings opFlags, Strings opAr std::set<unsigned int> gens; for (auto & i : opArgs) { unsigned int n; - if (!string2Int(i, n) || n < 0) + if (!string2Int(i, n)) throw UsageError(format("invalid generation number ‘%1%’") % i); gens.insert(n); } |