mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
libutil: Fix missing return warning
../hash.cc: In function 'nix::{anonymous}::DecodeNamePair nix::baseExplicit(HashFormat)':
../hash.cc:114:1: warning: control reaches end of non-void function [-Wreturn-type]
114 | }
| ^
This commit is contained in:
parent
1907a3300f
commit
298ea97c12
1 changed files with 2 additions and 1 deletions
|
|
@ -109,8 +109,9 @@ static DecodeNamePair baseExplicit(HashFormat format)
|
|||
case HashFormat::Base64:
|
||||
return {base64::decode, "Base64"};
|
||||
case HashFormat::SRI:
|
||||
assert(false);
|
||||
break;
|
||||
}
|
||||
unreachable();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue