Skip to content

Commit 8888753

Browse files
author
MarcoFalke
committed
Move compat/assumptions.h include to one place that actually needs it
Also add the <IWYU pragma: keep> to avoid removing it by accident.
1 parent 7777411 commit 8888753

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/common/system.h

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <config/bitcoin-config.h>
1111
#endif
1212

13-
#include <compat/assumptions.h>
1413
#include <compat/compat.h>
1514

1615
#include <set>

src/serialize.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
#define BITCOIN_SERIALIZE_H
88

99
#include <attributes.h>
10+
#include <compat/assumptions.h> // IWYU pragma: keep
1011
#include <compat/endian.h>
12+
#include <prevector.h>
13+
#include <span.h>
1114

1215
#include <algorithm>
1316
#include <cstdint>
@@ -18,13 +21,9 @@
1821
#include <memory>
1922
#include <set>
2023
#include <string>
21-
#include <string.h>
2224
#include <utility>
2325
#include <vector>
2426

25-
#include <prevector.h>
26-
#include <span.h>
27-
2827
/**
2928
* The maximum size of a serialized object in bytes or number of elements
3029
* (for eg vectors) when the size is encoded as CompactSize.

0 commit comments

Comments
 (0)