CERT.LITERAL.BITFIELD

Literal value used to define the size of a bit-field, use meaningful symbolic constants to represent literal values.

Checker highglights instances of bit-fields defined with a literal size value excluding instances of size 1.

Vulnerability and risk

Use of literal constants can reduce the readability and maintainability of the source code

Prevention

Use named constants to clearly define the meaning of constants