diff options
| author | Jon Atack <[email protected]> | 2020-10-16 00:18:44 +0200 |
|---|---|---|
| committer | Jon Atack <[email protected]> | 2020-10-16 23:33:44 +0200 |
| commit | c8abbc9d1fd8f77b5dcf31cf7a6dd6aac5d1c75c (patch) | |
| tree | d5c43cceb08852dfd47b17b7a74ec7c47dc00b8a /src/net_processing.cpp | |
| parent | Merge #20002: net, rpc, cli: expose peer network in getpeerinfo; simplify/imp... (diff) | |
| download | discoin-c8abbc9d1fd8f77b5dcf31cf7a6dd6aac5d1c75c.tar.xz discoin-c8abbc9d1fd8f77b5dcf31cf7a6dd6aac5d1c75c.zip | |
p2p: declare Announcement::m_state as uint8_t, add getter/setter
to silence these Travis CI GCC compiler warnings:
txrequest.cpp:73:21: warning: ‘{anonymous}::Announcement::m_state’ is
too small to hold all values of ‘enum class {anonymous}::State’
State m_state : 3;
^
The warnings are based on the maximum value held by the underlying uint8_t
enumerator type, though the intention of the bitfield declaration is the
maximum declared enumerator value.
The warning been silenced in GCC 8.4+ and 9.3+ according to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414
Diffstat (limited to 'src/net_processing.cpp')
0 files changed, 0 insertions, 0 deletions