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/lib/curl/Version.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/curl/Version.cxx') diff --git a/src/lib/curl/Version.cxx b/src/lib/curl/Version.cxx index 94a248b61..2a00d669b 100644 --- a/src/lib/curl/Version.cxx +++ b/src/lib/curl/Version.cxx @@ -32,7 +32,7 @@ #include bool -IsCurlOlderThan(unsigned version_num) +IsCurlOlderThan(unsigned version_num) noexcept { const auto *const info = curl_version_info(CURLVERSION_FIRST); return info == nullptr || info->version_num < version_num; -- cgit v1.2.3