diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-11-07 15:22:15 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-11-07 15:36:35 +0100 |
commit | 4b91c4314090e02f7bc9ea44bed2e5a49010b305 (patch) | |
tree | 6f206d36090ebfd2bacf381313fc83590a109808 /src/buildtool/crypto/hash_function.hpp | |
parent | 26010d2cfb80ced0459d877ef3ba3e349347417a (diff) | |
download | justbuild-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.hpp | 3 |
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: |