Change Announcement::m_state
in tx_request.cpp
from type State
to uint8_t
and add a getter and setter for the conversion to/from State
. This should silence these travis ci gcc compiler warnings:
0txrequest.cpp:73:21: warning: ‘{anonymous}::Announcement::m_state’ is
1too small to hold all values of ‘enum class {anonymous}::State’
2 State m_state : 3;
3 ^
The gcc warnings are based on the maximum value held by the underlying uint8_t enumerator type, even though the intention of the bitfield declaration is the maximum declared enumerator value. They have apparently been silenced in gcc 8.4+ and 9.3+ according to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414.