From 83723109be6b5c4fd93d98845f18de0c5adefcbe Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Mon, 17 Jun 2019 13:26:11 -0700 Subject: [PATCH] cmake: silence "WARNING: ASSERTs enabled" when CONFIG_TEST is true TEST configurations don't need to be warned that they're using test techniques with some side-effects. On a typical sanitycheck invocation, this warning is one of the only two that appears in most test runs. In other words this commit gets rid of half of the entire grep -ri '[[:blank:]]warn' noise that obscures any work-in-progress warnings or platform specific warnings in the logs (typically: device tree warnings). Signed-off-by: Marc Herbert --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b9f6ec08698..9d787ba2e50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1396,6 +1396,7 @@ add_subdirectory(cmake/flash) add_subdirectory(cmake/usage) add_subdirectory(cmake/reports) +if(NOT CONFIG_TEST) if(CONFIG_ASSERT AND (NOT CONFIG_FORCE_NO_ASSERT)) message(WARNING " ------------------------------------------------------------ @@ -1404,6 +1405,7 @@ if(CONFIG_ASSERT AND (NOT CONFIG_FORCE_NO_ASSERT)) ------------------------------------------------------------" ) endif() +endif() if(CONFIG_BOARD_DEPRECATED) message(WARNING "