diff options
author | Benety Goh <benety@mongodb.com> | 2021-05-04 19:29:17 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-04 23:55:07 +0000 |
commit | e17313d141f04ef1cb05d290fcdf1fdbbcaa231c (patch) | |
tree | cb1bd15f640c817e9b21d3b50d5f912a8d87a06d /src/mongo/base | |
parent | ad37d48cc3f4d01bae5f8b50f0a66e191f146d34 (diff) | |
download | mongo-e17313d141f04ef1cb05d290fcdf1fdbbcaa231c.tar.gz |
SERVER-56585 replace MONGO_COMPILER_VARIABLE_UNUSED with c++17 attribute maybe_unused (.cpp files only)
Diffstat (limited to 'src/mongo/base')
-rw-r--r-- | src/mongo/base/initializer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/base/initializer.cpp b/src/mongo/base/initializer.cpp index 633067784f7..c64e5770049 100644 --- a/src/mongo/base/initializer.cpp +++ b/src/mongo/base/initializer.cpp @@ -227,7 +227,7 @@ namespace { // Make sure that getGlobalInitializer() is called at least once before main(), and so at least // once in a single-threaded context. Otherwise, static initialization inside // getGlobalInitializer() won't be thread-safe. -MONGO_COMPILER_VARIABLE_UNUSED const auto earlyCaller = [] { +[[maybe_unused]] const auto earlyCaller = [] { getGlobalInitializer(); return 0; }(); |