aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-02-22 12:20:48 +0200
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2022-03-21 16:52:27 +0000
commit532c64a7264dd3c7329e8839547837c57da7dbe8 (patch)
tree9a358195495267b6112ebffdd58d8ccfd708b079 /src/util/system.cpp
parentc109e7d51c9c5614aafce184c63b52ad2e859eb2 (diff)
downloadbitcoin-532c64a7264dd3c7329e8839547837c57da7dbe8.tar.xz
build: Fix Boost.Process test for Boost 1.78
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r--src/util/system.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp
index 8e45453d31..a7e66defcd 100644
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -6,7 +6,16 @@
#include <util/system.h>
#ifdef ENABLE_EXTERNAL_SIGNER
+#if defined(__GNUC__)
+// Boost 1.78 requires the following workaround.
+// See: https://github.com/boostorg/process/issues/235
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wnarrowing"
+#endif
#include <boost/process.hpp>
+#if defined(__GNUC__)
+#pragma GCC diagnostic pop
+#endif
#endif // ENABLE_EXTERNAL_SIGNER
#include <chainparamsbase.h>