aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-30 02:57:19 -0700
committerChris Robinson <[email protected]>2019-09-30 02:57:19 -0700
commit0139d8a04fb6e976124206449c2fa3b9f2c2f56a (patch)
tree1f8163963435cfa6a7c9aeb74c77b42ac1129d85 /al
parentc833af9ecd6ed51fcfacc42bbdad16175b882279 (diff)
Remove noexcept from a function that explicitly throws
Diffstat (limited to 'al')
-rw-r--r--al/state.cpp3
1 files changed, 2 insertions, 1 deletions
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<Resampler::FastBSinc24>
template<> struct ResamplerName<Resampler::BSinc24>
{ 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<r>::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"};
}