aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTTornblom <thomas.tornblom@iar.com>2021-03-29 17:31:21 +0200
committerAnton Komlev <Anton.Komlev@arm.com>2021-03-31 10:46:20 +0200
commit17fad4259129d081942e4a5510f0e72c9d5e710f (patch)
tree1e7c7cdc318d88aee6b6fce43bec9aace455d1fe /platform
parenteb7727748a314f0568f1753f9d24f380674f23c2 (diff)
downloadtrusted-firmware-m-17fad4259129d081942e4a5510f0e72c9d5e710f.tar.gz
BUILD: Remove -Wno-unused-parameter option from IARTF-Mv1.3.0-RC3
Signed-off-by: TTornblom <thomas.tornblom@iar.com> Change-Id: I04720bec1a5164eafe947cbd0e336eb064443561
Diffstat (limited to 'platform')
-rw-r--r--platform/ext/accelerator/cc312/CMakeLists.txt6
-rw-r--r--platform/ext/accelerator/stm/CMakeLists.txt7
2 files changed, 8 insertions, 5 deletions
diff --git a/platform/ext/accelerator/cc312/CMakeLists.txt b/platform/ext/accelerator/cc312/CMakeLists.txt
index 7da3bff41..5a6a96c1e 100644
--- a/platform/ext/accelerator/cc312/CMakeLists.txt
+++ b/platform/ext/accelerator/cc312/CMakeLists.txt
@@ -81,7 +81,8 @@ if(BL2)
target_compile_options(bl2_mbedcrypto
PRIVATE
- -Wno-unused-parameter
+ $<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
+ $<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
)
#Include platform specific defs (registers etc)
@@ -160,7 +161,8 @@ target_compile_definitions(crypto_service_mbedcrypto
target_compile_options(crypto_service_mbedcrypto
PRIVATE
- -Wno-unused-parameter
+ $<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
+ $<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
)
#Include platform specific defs (registers etc)
diff --git a/platform/ext/accelerator/stm/CMakeLists.txt b/platform/ext/accelerator/stm/CMakeLists.txt
index 72326b481..87bd03461 100644
--- a/platform/ext/accelerator/stm/CMakeLists.txt
+++ b/platform/ext/accelerator/stm/CMakeLists.txt
@@ -30,7 +30,8 @@ if(BL2)
target_compile_options(bl2_mbedcrypto
PRIVATE
- -Wno-unused-parameter
+ $<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
+ $<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
)
endif()
include(${PLATFORM_DIR}/ext/target/${TFM_PLATFORM}/accelerator/CMakeLists.txt)
@@ -50,6 +51,6 @@ target_compile_definitions(crypto_service_mbedcrypto
target_compile_options(crypto_service_mbedcrypto
PRIVATE
- -Wno-unused-parameter
+ $<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
+ $<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
)
-