Skip to content
Commit 9d7d58d9 authored by Etienne Carriere's avatar Etienne Carriere Committed by Jamie McCrae
Browse files

boot: bootutil: declare fih_panic_loop() as noreturn



Add noreturn attribute the fih_panic_loop() and add a terminal
endless loop in the function to prevent build warnings like
the below one found when build MCUBOOT in TF-M:

.../arm-none-eabi/include/assert.h: In function '__assert_func':
.../trusted-firmware-m/platform/ext/common/tfm_assert.c:22:1: warning: 'noreturn' function does return
   22 | }
      | ^

Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
(cherry picked from commit 3e02536f)
parent 11c0611a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment