summaryrefslogtreecommitdiff
path: root/src/IdleFlags.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
committerMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
commit71f0ed8b7499011b53f90998ebfbd3250fd80948 (patch)
treee9c2f66fbef231858f46d878864199d46e6ce21c /src/IdleFlags.cxx
parentac2e4e593d407e41db49fdb9ae2da6bc1557f618 (diff)
*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
Diffstat (limited to 'src/IdleFlags.cxx')
-rw-r--r--src/IdleFlags.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IdleFlags.cxx b/src/IdleFlags.cxx
index 84b49add3..823dde823 100644
--- a/src/IdleFlags.cxx
+++ b/src/IdleFlags.cxx
@@ -46,13 +46,13 @@ static const char *const idle_names[] = {
};
const char*const*
-idle_get_names(void)
+idle_get_names() noexcept
{
return idle_names;
}
unsigned
-idle_parse_name(const char *name)
+idle_parse_name(const char *name) noexcept
{
#if !CLANG_CHECK_VERSION(3,6)
/* disabled on clang due to -Wtautological-pointer-compare */