summaryrefslogtreecommitdiff
path: root/src/mongo/transport
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2021-09-27 20:57:54 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-28 01:27:05 +0000
commite5e1f54075866e768d91720d0ec8b584f14f7554 (patch)
tree8abc9771a1cad88633a88de098e9c884460bc46c /src/mongo/transport
parent3049cabccd7610a7fa8a9ad7fd24b6afebc928d8 (diff)
downloadmongo-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/SConscript14
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',