Skip to content

Commit c2e3835

Browse files
committed
Merge pull request monero-project#9910
d106e21 src: fix clangd warnings (0xFFFC0000)
2 parents c5cb8e1 + d106e21 commit c2e3835

37 files changed

+606
-519
lines changed

contrib/epee/include/net/abstract_tcp_server2.inl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131
//
3232

33+
#pragma once
3334

3435
#include <boost/asio/post.hpp>
3536
#include <boost/foreach.hpp>
@@ -45,6 +46,7 @@
4546
#include "warnings.h"
4647
#include "string_tools_lexical.h"
4748
#include "misc_language.h"
49+
#include "net/abstract_tcp_server2.h"
4850

4951
#include <sstream>
5052
#include <iomanip>

src/blockchain_db/locked_txn.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
#pragma once
3232

33+
#include "blockchain_db.h"
34+
3335
namespace cryptonote
3436
{
3537
// This class is meant to create a batch when none currently exists.

src/blockchain_db/testdb.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include <vector>
3535
#include <map>
3636

37+
#include <cryptonote_basic/cryptonote_format_utils.h>
38+
3739
#include "blockchain_db.h"
3840

3941
namespace cryptonote

src/common/aligned.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,16 @@
3030
#pragma once
3131

3232
#ifdef __cplusplus
33+
34+
#include <cstddef>
35+
3336
extern "C" {
34-
#endif
37+
38+
#else // C compiler
39+
40+
#include <stddef.h>
41+
42+
#endif // __cplusplus
3543

3644
void *aligned_malloc(size_t bytes, size_t align);
3745
void *aligned_realloc(void *ptr, size_t bytes, size_t align);

src/common/download.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#pragma once
3030

3131
#include <string>
32+
#include <memory>
33+
#include <functional>
3234

3335
namespace tools
3436
{

src/common/i18n.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
#pragma once
3030

31+
#include <string>
32+
3133
#define QT_TRANSLATE_NOOP(context,str) i18n_translate(str,context)
3234

3335
std::string i18n_get_language();

src/common/sfinae_helpers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
#pragma once
3030

31+
#include <string>
32+
3133
// the loose definitions of types in this file are, well, loose.
3234
//
3335
// these helpers aren't here for absolute type certainty at compile-time,

src/common/spawn.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
#pragma once
3131

32+
#include <string>
33+
#include <vector>
34+
3235
namespace tools
3336
{
3437

src/crypto/CryptonightR_JIT.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef CRYPTONIGHTR_JIT_H
22
#define CRYPTONIGHTR_JIT_H
33

4+
#include <stdint.h>
5+
#include <stddef.h>
6+
47
// Minimalistic JIT code generator for random math sequence in CryptonightR
58
//
69
// Usage:

0 commit comments

Comments
 (0)