The latest development version of this page may be more current than this released 1.14.0 version.
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:413

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.)