summaryrefslogtreecommitdiff
path: root/src/lib/alsa
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-05-15 23:05:45 +0200
committerMax Kellermann <max@musicpd.org>2017-05-15 23:05:45 +0200
commitc5996c059371753420e347b7eb77fca7ad9ca7cd (patch)
tree09f430cf9f1a00dab9c25d0bce476c87454f25ba /src/lib/alsa
parentcde5a0798117f3a3cc65032877c416caa8c23bb2 (diff)
*: add "noexcept" to many, many function prototypes
See commit 71f0ed8b7499011b53f90998ebfbd3250fd80948
Diffstat (limited to 'src/lib/alsa')
-rw-r--r--src/lib/alsa/Version.cxx4
-rw-r--r--src/lib/alsa/Version.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/alsa/Version.cxx b/src/lib/alsa/Version.cxx
index b24ded778..9aed77683 100644
--- a/src/lib/alsa/Version.cxx
+++ b/src/lib/alsa/Version.cxx
@@ -23,7 +23,7 @@
gcc_pure
static uint_least32_t
-ParseAlsaVersion(const char *p)
+ParseAlsaVersion(const char *p) noexcept
{
char *endptr;
unsigned long major, minor = 0, subminor = 0;
@@ -42,7 +42,7 @@ ParseAlsaVersion(const char *p)
}
uint_least32_t
-GetRuntimeAlsaVersion()
+GetRuntimeAlsaVersion() noexcept
{
const char *version = snd_asoundlib_version();
if (version == nullptr)
diff --git a/src/lib/alsa/Version.hxx b/src/lib/alsa/Version.hxx
index 4a595ca28..5ff6a04f1 100644
--- a/src/lib/alsa/Version.hxx
+++ b/src/lib/alsa/Version.hxx
@@ -37,6 +37,6 @@ MakeAlsaVersion(uint_least32_t major, uint_least32_t minor,
*/
gcc_const
uint_least32_t
-GetRuntimeAlsaVersion();
+GetRuntimeAlsaVersion() noexcept;
#endif