diff options
author | Juan Gu <juan.gu@mongodb.com> | 2023-05-05 17:59:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 22:34:33 +0000 |
commit | 02bf3f55f88874bf397b42758c9cd36093633f9e (patch) | |
tree | 3964271e581d4b735252c2462e9a2bdf32df47f6 /src/mongo/db/repl/SConscript | |
parent | 41c95363ac628dd0a89fb18c369b0fdef42496e2 (diff) | |
download | mongo-02bf3f55f88874bf397b42758c9cd36093633f9e.tar.gz |
SERVER-60173 Ban implicit capture of `this` via `[=]` in lambda expressions
Diffstat (limited to 'src/mongo/db/repl/SConscript')
-rw-r--r-- | src/mongo/db/repl/SConscript | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/repl/SConscript b/src/mongo/db/repl/SConscript index 302dd4186d2..f313f2942fa 100644 --- a/src/mongo/db/repl/SConscript +++ b/src/mongo/db/repl/SConscript @@ -2031,8 +2031,13 @@ env.Library( 'hello_command', ], ) - -env.Library( +wait_for_majority_service_env = env.Clone() +# TODO(SERVER-77205): Review and Possibly Remove '-Wno-deprecated' After Mozjs Update +wait_for_majority_service_env.Append( + CXXFLAGS=[] if wait_for_majority_service_env.TargetOSIs('windows') else [ + '-Wno-deprecated', + ], ) +wait_for_majority_service_env.Library( target='wait_for_majority_service', source=[ 'wait_for_majority_service.cpp', |