aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2022-05-09 10:59:08 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-05-09 10:59:08 +0200
commit5dffbf2ef16a1771c8587c430b42c643a1858bc6 (patch)
tree38feb590d384fd122700defcd55589d5b10a3861
parentc5b831f007ed8cde07052bdfbfa1173affdb7fb5 (diff)
downloadethos-u-core-software-5dffbf2ef16a1771c8587c430b42c643a1858bc6.tar.gz
Silence compilation warnings22.05-rc1
Add compilation flags to silence warnings about unused functions and parameters. Change-Id: I2c87a39c2adc05a19a59cf3978c5612f568be61a
-rw-r--r--rtos/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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()