From e5cc8540e43cd94ef68cecc05d45fd2aace014f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Fri, 21 May 2021 10:56:23 -0700 Subject: [PATCH] Kconfig.zephyr: fix MISRA_SANE location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This belongs under "Compiler Options", not "Boot Options" where it currently is. Signed-off-by: Martí Bolívar --- Kconfig.zephyr | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index a3e2e93df0c..42d2d163cfb 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -273,6 +273,14 @@ config COMPILER_OPT and can be used to change compiler optimization, warning and error messages, and so on. +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). + endmenu choice @@ -599,14 +607,6 @@ config BOOTLOADER_BOSSA_ADAFRUIT_UF2 endchoice -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). - endmenu menu "Compatibility"