diff options
author | Andrew Morrow <acm@mongodb.com> | 2021-09-27 20:57:54 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-28 01:27:05 +0000 |
commit | e5e1f54075866e768d91720d0ec8b584f14f7554 (patch) | |
tree | 8abc9771a1cad88633a88de098e9c884460bc46c /src/mongo/transport | |
parent | 3049cabccd7610a7fa8a9ad7fd24b6afebc928d8 (diff) | |
download | mongo-e5e1f54075866e768d91720d0ec8b584f14f7554.tar.gz |
SERVER-59233 Suppress ASIO nullptr dereference warning when using GCC 11
Diffstat (limited to 'src/mongo/transport')
-rw-r--r-- | src/mongo/transport/SConscript | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mongo/transport/SConscript b/src/mongo/transport/SConscript index d7898ee475e..27856ec3ca0 100644 --- a/src/mongo/transport/SConscript +++ b/src/mongo/transport/SConscript @@ -207,7 +207,19 @@ tlEnv.CppUnitTest( ], ) -tlEnv.CppIntegrationTest( +tlEnvTest = tlEnv.Clone() +tlEnvTest.Append( + # TODO(SERVER-54659): Work around casted nullptrs in + # asio/impl/connect.hpp, which has an open PR upstream + # https://github.com/chriskohlhoff/asio/pull/882, and will + # hopefully arrive in a future released version to which we will + # upgrade per SERVER-54569. + CCFLAGS=[] if env.TargetOSIs('windows') else [ + '-Wno-nonnull', + ], +) + +tlEnvTest.CppIntegrationTest( target='transport_integration_test', source=[ 'transport_layer_asio_integration_test.cpp', |