Skip to content

txrequest announcement warning #20173

@sidhujag

Description

@sidhujag

Compiling master on bionic x86_64 I get this warning:

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;

Do we do anything about it? You would think 3 bits (8 values) should be enough to store m_state which only has 5 values but maybe because the State enum is a uint8_t its complaining about possibly being too small.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions