1
1
Fork 0
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:
Sergei Zimmerman 2025-09-13 09:19:07 +03:00
parent 1907a3300f
commit 298ea97c12
No known key found for this signature in database

View file

@ -109,8 +109,9 @@ static DecodeNamePair baseExplicit(HashFormat format)
case HashFormat::Base64:
return {base64::decode, "Base64"};
case HashFormat::SRI:
assert(false);
break;
}
unreachable();
}
/**