From 39c07e1f5f8eda4f87e1b357dde1eab6407f0491 Mon Sep 17 00:00:00 2001 From: Esha Maharishi Date: Thu, 20 Feb 2020 01:29:35 +0000 Subject: SERVER-46143 ExecutorFuture class declaration should include MONGO_WARN_UNUSED_RESULT_CLASS --- src/mongo/util/future.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/util/future.h') diff --git a/src/mongo/util/future.h b/src/mongo/util/future.h index f2dd88e8afc..0de6a14424c 100644 --- a/src/mongo/util/future.h +++ b/src/mongo/util/future.h @@ -540,7 +540,7 @@ Future(StatusWith)->Future; * because they will propagate out BrokenPromise if the executor refuses work. */ template -class ExecutorFuture : private SemiFuture { +class MONGO_WARN_UNUSED_RESULT_CLASS ExecutorFuture : private SemiFuture { using Impl = typename SemiFuture::Impl; using T_unless_void = typename SemiFuture::T_unless_void; -- cgit v1.2.1