Skip to content

Commit 150e7b4

Browse files
Flavio Ceolinmbolivar-nordic
authored andcommitted
[nrf fromtree] secure_fw: crypto: add -Wno-unused-const-variable
When using TF-M with upstream MbedTLS, the upstream project generates a warning about const variables being set but not unused. This warning causes CI to fail in some downstream consumers of TF-M (Zephyr in this case). Add `-Wno-unused-const-variable` avoids this warning. Author: Flavio Ceolin <[email protected]> Signed-off-by: Kevin Townsend <[email protected]> Change-Id: I106d0d8598a6d075e3824202038fc37e0c5a9861 Signed-off-by: Joakim Andersson <[email protected]> (cherry picked from commit 1b7ee9d)
1 parent f2f661d commit 150e7b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

secure_fw/partitions/crypto/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ target_sources(${MBEDTLS_TARGET_PREFIX}mbedcrypto
185185

186186
target_compile_options(${MBEDTLS_TARGET_PREFIX}mbedcrypto
187187
PRIVATE
188+
$<$<C_COMPILER_ID:GNU>:-Wno-unused-const-variable>
188189
$<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
190+
$<$<C_COMPILER_ID:ARMClang>:-Wno-unused-const-variable>
189191
$<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
190192
)
191193

0 commit comments

Comments
 (0)