From 5dffbf2ef16a1771c8587c430b42c643a1858bc6 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Mon, 9 May 2022 10:59:08 +0200 Subject: Silence compilation warnings Add compilation flags to silence warnings about unused functions and parameters. Change-Id: I2c87a39c2adc05a19a59cf3978c5612f568be61a --- rtos/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtos/CMakeLists.txt b/rtos/CMakeLists.txt index f86cb83..753b307 100644 --- a/rtos/CMakeLists.txt +++ b/rtos/CMakeLists.txt @@ -38,9 +38,14 @@ if((CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m55") AND #if ThreadX supports this configuration, build ThreadX. if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/threadx/ports/${THREADX_ARCH}/${THREADX_TOOLCHAIN}/CMakeLists.txt) add_subdirectory(threadx) + if(THREADX_ARCH STREQUAL "cortex_m33" OR THREADX_ARCH STREQUAL "cortex_m55") target_compile_definitions(threadx PUBLIC TX_SINGLE_MODE_SECURE) endif() + + target_compile_options(threadx PRIVATE + -Wno-unused-function + -Wno-unused-parameter) else() message(STATUS "Skipping ThreadX build - doesn't support toolchain=${THREADX_TOOLCHAIN} and cpu=${THREADX_ARCH}") endif() -- cgit v1.2.1