From b93348f6e1627ccb4932ab56d449477c750c9520 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 17 Feb 2023 16:45:13 -0800 Subject: [PATCH] ircd: Fix -Wdeprecated-copy-with-user-provided-dtor or remove empty dtors. --- include/ircd/db/snapshot.h | 4 +++- include/ircd/prof/system.h | 1 - ircd/prof_linux.cc | 5 ----- ircd/tokens.cc | 12 ------------ 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/include/ircd/db/snapshot.h b/include/ircd/db/snapshot.h index e8f1ee09d..85eb8c64e 100644 --- a/include/ircd/db/snapshot.h +++ b/include/ircd/db/snapshot.h @@ -36,8 +36,10 @@ struct ircd::db::database::snapshot explicit operator bool() const; bool operator !() const; - explicit snapshot(database &); snapshot() = default; + explicit snapshot(database &); + snapshot(const snapshot &) = default; + snapshot &operator=(const snapshot &) = default; ~snapshot() noexcept; }; diff --git a/include/ircd/prof/system.h b/include/ircd/prof/system.h index 6c67f832e..3ea2d6252 100644 --- a/include/ircd/prof/system.h +++ b/include/ircd/prof/system.h @@ -45,5 +45,4 @@ struct ircd::prof::system system(sample_t) noexcept; system() :array_type{{{0}}} {} - ~system() noexcept; }; diff --git a/ircd/prof_linux.cc b/ircd/prof_linux.cc index 5a9e9d20f..ae6630ff1 100644 --- a/ircd/prof_linux.cc +++ b/ircd/prof_linux.cc @@ -336,11 +336,6 @@ noexcept start(group); } -ircd::prof::system::~system() -noexcept -{ -} - /* create(system::group, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK, true, false); create(system::group, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK, false, true); diff --git a/ircd/tokens.cc b/ircd/tokens.cc index 0ba6527d4..2a8d2722b 100644 --- a/ircd/tokens.cc +++ b/ircd/tokens.cc @@ -27,7 +27,6 @@ ircd::string_separator void reset() noexcept; string_separator(const string_view &delim) noexcept; - ~string_separator() noexcept; }; struct [[gnu::visibility("internal")]] @@ -41,7 +40,6 @@ ircd::char_separator void reset() noexcept; char_separator(const char &delim) noexcept; - ~char_separator() noexcept; }; // @@ -517,11 +515,6 @@ noexcept { } -ircd::string_separator::~string_separator() -noexcept -{ -} - void ircd::string_separator::reset() noexcept @@ -570,11 +563,6 @@ noexcept { } -ircd::char_separator::~char_separator() -noexcept -{ -} - void ircd::char_separator::reset() noexcept