From 89ed678ab0613bc477982d6b086874d5dfc9d7a5 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 3 Apr 2020 12:45:42 -0700 Subject: [PATCH] ircd::m::event: Replace with nodiscard attribute. (related f026110b15) --- include/ircd/m/event/event_id.h | 4 ++-- include/ircd/m/event/index.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ircd/m/event/event_id.h b/include/ircd/m/event/event_id.h index 6ee9726a6..288f3f46c 100644 --- a/include/ircd/m/event/event_id.h +++ b/include/ircd/m/event/event_id.h @@ -19,9 +19,9 @@ namespace ircd::m { bool event_id(std::nothrow_t, const event::idx &, const event::id::closure &); - [[gnu::warn_unused_result]] event::id event_id(std::nothrow_t, const event::idx &, event::id::buf &); + [[nodiscard]] event::id event_id(std::nothrow_t, const event::idx &, event::id::buf &); event::id event_id(const event::idx &, event::id::buf &); - [[gnu::warn_unused_result]] event::id::buf event_id(std::nothrow_t, const event::idx &); + [[nodiscard]] event::id::buf event_id(std::nothrow_t, const event::idx &); event::id::buf event_id(const event::idx &); } diff --git a/include/ircd/m/event/index.h b/include/ircd/m/event/index.h index cc7f0a92e..5d54c938a 100644 --- a/include/ircd/m/event/index.h +++ b/include/ircd/m/event/index.h @@ -15,9 +15,9 @@ namespace ircd::m { bool index(std::nothrow_t, const event::id &, const event::closure_idx &); - [[gnu::warn_unused_result]] event::idx index(std::nothrow_t, const event::id &); + [[nodiscard]] event::idx index(std::nothrow_t, const event::id &); event::idx index(const event::id &); - [[gnu::warn_unused_result]] event::idx index(std::nothrow_t, const event &); + [[nosdiscard]] event::idx index(std::nothrow_t, const event &); event::idx index(const event &); }