From 0139d8a04fb6e976124206449c2fa3b9f2c2f56a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 30 Sep 2019 02:57:19 -0700 Subject: [PATCH] Remove noexcept from a function that explicitly throws --- al/state.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/al/state.cpp b/al/state.cpp index 017a1e53..3ce09be9 100644 --- a/al/state.cpp +++ b/al/state.cpp @@ -76,7 +76,7 @@ template<> struct ResamplerName template<> struct ResamplerName { static constexpr const ALchar *Get() noexcept { return "23rd order Sinc"; } }; -const ALchar *GetResamplerName(const Resampler rtype) noexcept +const ALchar *GetResamplerName(const Resampler rtype) { #define HANDLE_RESAMPLER(r) case r: return ResamplerName::Get() switch(rtype) @@ -90,6 +90,7 @@ const ALchar *GetResamplerName(const Resampler rtype) noexcept HANDLE_RESAMPLER(Resampler::BSinc24); } #undef HANDLE_RESAMPLER + /* Should never get here. */ throw std::runtime_error{"Unexpected resampler index"}; }