From 89f5ae3e6a5a4a6f2f019441a4f3ba01024e98f2 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 26 Jan 2020 20:20:56 -0800 Subject: [PATCH] Add noexcept to completion_t definitions as well as declarations This is required if we want to compile with exceptions enabled (which we currently do not). --- src/complete.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/complete.cpp b/src/complete.cpp index d67fea1e6..8199abf8c 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -214,9 +214,9 @@ completion_t::completion_t(wcstring comp, wcstring desc, string_fuzzy_match_t ma flags(resolve_auto_space(completion, flags_val)) {} completion_t::completion_t(const completion_t &) = default; -completion_t::completion_t(completion_t &&) = default; +completion_t::completion_t(completion_t &&) noexcept = default; completion_t &completion_t::operator=(const completion_t &) = default; -completion_t &completion_t::operator=(completion_t &&) = default; +completion_t &completion_t::operator=(completion_t &&) noexcept = default; completion_t::~completion_t() = default; __attribute__((always_inline)) static inline bool natural_compare_completions(