summaryrefslogtreecommitdiff
path: root/src/buildtool/crypto/hash_function.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-11-07 15:22:15 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-11-07 15:36:35 +0100
commit4b91c4314090e02f7bc9ea44bed2e5a49010b305 (patch)
tree6f206d36090ebfd2bacf381313fc83590a109808 /src/buildtool/crypto/hash_function.hpp
parent26010d2cfb80ced0459d877ef3ba3e349347417a (diff)
downloadjustbuild-4b91c4314090e02f7bc9ea44bed2e5a49010b305.tar.gz
Silence GCC warnings on missing return statements
Diffstat (limited to 'src/buildtool/crypto/hash_function.hpp')
-rw-r--r--src/buildtool/crypto/hash_function.hpp3
1 files changed, 3 insertions, 0 deletions
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 <optional>
#include <string>
+#include <gsl-lite/gsl-lite.hpp>
+
#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: