Skip to content

Commit 09f1d7f

Browse files
author
MarcoFalke
committed
Merge #14718: Remove unreferenced boost headers
c54e5a4 Remove unreferenced boost headers (Murray Nesbitt) Pull request description: Building with clang (e.g. on FreeBSD) is very noisy due to `-Wthread-safety-analysis` warnings regarding boost. This change removes a number of unnecessary boost includes, and silences the rest of the warnings when building with clang. This allows more potentially interesting warnings to surface from the noise. Tested on FreeBSD 11.2 Tree-SHA512: 5e6a0623188b9be59aeae52866799aefb4c3c9ab5e569b07ee8d43fc92e0b5f1f76b96bb54c35c7043148df84641b4a96927fb71f6eb00460c20cd19cf250900
2 parents 6d58a5c + c54e5a4 commit 09f1d7f

File tree

5 files changed

+0
-6
lines changed

5 files changed

+0
-6
lines changed

src/fs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#endif
1313

1414
#include <boost/filesystem.hpp>
15-
#include <boost/filesystem/fstream.hpp>
1615

1716
/** Filesystem operations and types */
1817
namespace fs = boost::filesystem;

src/interfaces/node.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#endif
3636

3737
#include <atomic>
38-
#include <boost/thread/thread.hpp>
3938
#include <univalue.h>
4039

4140
class CWallet;

src/rpc/blockchain.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
#include <univalue.h>
4141

42-
#include <boost/algorithm/string.hpp>
4342
#include <boost/thread/thread.hpp> // boost::thread::interrupt
4443

4544
#include <memory>

src/rpc/util.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include <script/standard.h>
1010
#include <univalue.h>
1111

12-
#include <boost/variant/static_visitor.hpp>
13-
1412
#include <string>
1513
#include <vector>
1614

src/util/system.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
#include <malloc.h>
7474
#endif
7575

76-
#include <boost/thread.hpp>
7776
#include <openssl/crypto.h>
7877
#include <openssl/rand.h>
7978
#include <openssl/conf.h>

0 commit comments

Comments
 (0)