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:
parent
3d91bfc8f8
commit
4ba6bc184c
9 changed files with 72 additions and 67 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue