Check for variant blocks that do not have a default choice
Check ID:
mathworks.misra.DefaultChoiceVariantChecks
Identify variant blocks with startup variant activation time that do not have a default
choice when the Casting modes is set to Standards
Compliant
.
Description
Following the recommendations of this check increases the likelihood of generating MISRA C:2012 compliant code for embedded applications.
Available with Embedded Coder® and Simulink® Check™.
Results and Recommended Actions
Condition | Recommended Action |
---|---|
The variant blocks do not contain default choices but the
Casting modes is set to
| Add a default choice as one of the choices for variant blocks. |
Capabilities and Limitations
Analyzes content of variant blocks.
Edit-Time Checking
This check is supported by edit-time checking.