From 71f0ed8b7499011b53f90998ebfbd3250fd80948 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 May 2017 14:44:49 +0200 Subject: *: add "noexcept" to many, many function prototypes This eliminates some overhead, because the compiler doesn't need to consider these functions throwing. --- src/IdleFlags.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/IdleFlags.cxx') 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 */ -- cgit v1.2.3