Skip to content

Commit e53fb23

Browse files
committed
tf-m: build: Treat warnings as errors
Starting in TF-M 2.2.0 there is a build option to treat warnings as errors. Lets use it. Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
1 parent ed7f2e0 commit e53fb23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/trusted-firmware-m/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ if (CONFIG_BUILD_WITH_TFM)
2626
endif()
2727
endif()
2828

29+
# Treat any warning as error
30+
list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_WARNINGS_ARE_ERRORS:BOOL=ON)
31+
2932
if (CONFIG_TFM_SFN)
3033
list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_SPM_BACKEND="SFN")
3134
else() # CONFIG_TFM_IPC

0 commit comments

Comments
 (0)