From 4b91c4314090e02f7bc9ea44bed2e5a49010b305 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 7 Nov 2022 15:22:15 +0100 Subject: Silence GCC warnings on missing return statements --- src/buildtool/crypto/hash_function.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/buildtool/crypto/hash_function.hpp') diff --git a/src/buildtool/crypto/hash_function.hpp b/src/buildtool/crypto/hash_function.hpp index 0439ecc7..ac7cadcc 100644 --- a/src/buildtool/crypto/hash_function.hpp +++ b/src/buildtool/crypto/hash_function.hpp @@ -20,6 +20,8 @@ #include #include +#include + #include "src/buildtool/crypto/hasher.hpp" /// \brief Hash function used for the entire buildtool. @@ -69,6 +71,7 @@ class HashFunction { case JustHash::Compatible: return ::Hasher{Hasher::HashType::SHA256}; } + gsl_Ensures(false); // unreachable } private: -- cgit v1.2.3