Skip to content

Commit

Permalink
fix: Fix missing includes (#5295)
Browse files Browse the repository at this point in the history
The `<stdexcept>` include is needed for `std::runtime_error` definition.
The `<cstdint>` include is needed for `uint8_t` and `uint32_t`
definition.

## Issue being fixed or feature implemented
Compilation failure with GCC 13.
GCC 13 is more strict about missing includes that were included
indirectly by previous versions of GCC.


## What was done?
Added missing includes.

## How Has This Been Tested?
Successful compilation on Fedora 38 with GCC 13. All tests passed
successfully.


## Breaking Changes
None.


## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation

Signed-off-by: Oleg Girko <[email protected]>
Co-authored-by: Oleg Girko <[email protected]>
  • Loading branch information
OlegGirko and OlegGirko authored Apr 6, 2023
1 parent 7f42884 commit 9b74c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/support/lockedpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#endif

#include <algorithm>
#include <stdexcept>
#ifdef ARENA_DEBUG
#include <iomanip>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions src/util/bip32.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define BITCOIN_UTIL_BIP32_H

#include <attributes.h>
#include <cstdint>
#include <string>
#include <vector>

Expand Down

0 comments on commit 9b74c70

Please sign in to comment.