CppCheck is flagging the definition of BufLen as an unusedStructMember, even though it is used on the next line to define the length of the array.
(style) struct member 'TxDetails_t::BufLen' is never used. [unusedStructMember]
static struct TxDetails_t
{
static constexpr int32_t BufLen = 128;
uint8_t buffer[BufLen];
uint8_t* ptr;
int32_t num_bytes;
} TxData;
Is CppCheck wrong to report this, or is there a better way for me to define this struct?