From cdfddecb35e09a20007b30042b00551964e3162f Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 26 Jun 2019 10:22:26 -0400 Subject: [PATCH] include/: cleanup: add Kconfig for suppressing warnings Suppress warnings from deprecated header shims. Use when you have an application that needs to work with older versions of Zephyr where headers were located in different directories. The shim will go away after two releases, so make sure to adapt your application for the new locations. Signed-off-by: Anas Nashif --- Kconfig.zephyr | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index e1003fcaca7..e235c4d8936 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -427,3 +427,15 @@ config MISRA_SANE arrays are not permitted (and gcc will enforce this). endmenu + + +menu "Compatibility" + +config COMPAT_INCLUDES + bool "Suppress warnings when using header shims" + default y + help + Suppress any warnings from the pre-processor when including + deprecated header files. + +endmenu