From: Matthew Bentham Date: Thu, 5 Dec 2019 10:37:09 +0000 (+0000) Subject: Add noexcept to std::hash specialisation for BackendId X-Git-Tag: submit/tizen/20200730.023729~356 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa9a5b757ea1b42ab120aae34699a664a0704b96;p=platform%2Fupstream%2Farmnn.git Add noexcept to std::hash specialisation for BackendId This fixes a warning reported by gcc 8.3 with -Wextra Signed-off-by: Matthew Bentham Change-Id: I5aad9fe201545d8c87ace9d24e53e900289986b8 --- diff --git a/include/armnn/BackendId.hpp b/include/armnn/BackendId.hpp index 59d4ac1..00ece37 100644 --- a/include/armnn/BackendId.hpp +++ b/include/armnn/BackendId.hpp @@ -147,7 +147,7 @@ namespace std template <> struct hash { - std::size_t operator()(const armnn::BackendId& id) const + std::size_t operator()(const armnn::BackendId& id) const noexcept { std::hash hasher; return hasher(id.Get());