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 <Zephyr>/Kconfig.zephyr:510

Included via <Zephyr>/Kconfig:8

Menu path: (Top) → Boot Options

config MISRA_SANE
    bool "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).

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)