1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

Shut up clang warnings

This commit is contained in:
Eelco Dolstra 2015-09-18 01:22:06 +02:00
parent 3d91bfc8f8
commit 4ba6bc184c
9 changed files with 72 additions and 67 deletions

View file

@ -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);
}