From 298ea97c12809e91fe89b485a6c0a24624fcb24f Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Sat, 13 Sep 2025 09:19:07 +0300 Subject: [PATCH] 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 | } | ^ --- src/libutil/hash.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc index 6715b8112..b67dc7807 100644 --- a/src/libutil/hash.cc +++ b/src/libutil/hash.cc @@ -109,8 +109,9 @@ static DecodeNamePair baseExplicit(HashFormat format) case HashFormat::Base64: return {base64::decode, "Base64"}; case HashFormat::SRI: - assert(false); + break; } + unreachable(); } /**