summaryrefslogtreecommitdiff
path: root/src/mongo/util/future.h
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2020-02-20 01:29:35 +0000
committerevergreen <evergreen@mongodb.com>2020-02-20 01:29:35 +0000
commit39c07e1f5f8eda4f87e1b357dde1eab6407f0491 (patch)
treedc74a3757f86976a456f9f630379f049f1ba6762 /src/mongo/util/future.h
parent82fa959d2b9686a8cd553babd0381b0e0d11574d (diff)
downloadmongo-39c07e1f5f8eda4f87e1b357dde1eab6407f0491.tar.gz
SERVER-46143 ExecutorFuture class declaration should include MONGO_WARN_UNUSED_RESULT_CLASS
Diffstat (limited to 'src/mongo/util/future.h')
-rw-r--r--src/mongo/util/future.h2
1 files changed, 1 insertions, 1 deletions
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<T>)->Future<T>;
* because they will propagate out BrokenPromise if the executor refuses work.
*/
template <typename T>
-class ExecutorFuture : private SemiFuture<T> {
+class MONGO_WARN_UNUSED_RESULT_CLASS ExecutorFuture : private SemiFuture<T> {
using Impl = typename SemiFuture<T>::Impl;
using T_unless_void = typename SemiFuture<T>::T_unless_void;