...
Values declared using const
cannot be used where compile-time constants are required. So, a const-qualified value cannot be used to specify the*
- size of a bit-field member of a structure
...
- size of an array
...
- value of an enumeration constant
...
- value of a
case
constant.
If any of these are required, then anenum
or a macro definition must be used.
Risk Assessment
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
DCL00-A | 1 (low) | 1 (unlikely) | 2 (medium) | P2 | L3 |
...