CONFIG_MISRA_SANE

MISRA standards compliance features

Type: bool

Help

Causes the source code to build in “MISRA” mode, which disallows some otherwise-permitted features of the C standard for safety reasons. Specifically variable length arrays are not permitted (and gcc will enforce this).

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At Kconfig.zephyr:415

Included via Kconfig:10

Menu path: (top menu) → Boot Options

config MISRA_SANE
    bool
    prompt "MISRA standards compliance features"
    help
      Causes the source code to build in "MISRA" mode, which
      disallows some otherwise-permitted features of the C
      standard for safety reasons.  Specifically variable length
      arrays are not permitted (and gcc will enforce this).

(Definitions include propagated dependencies, including from if’s and menus.)