Skip to content

Commit 1348d64

Browse files
committed
boot_hal: workaround compiler warning
Add code_unreachable to satisfy compiler and convince it we do not return in this function. The error we are getting: error: 'noreturn' function does return [-Werror] Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 3671184 commit 1348d64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/ext/common/boot_hal_bl2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ __WEAK void boot_platform_start_next_image(struct boot_arm_vector_table *vt)
237237
__WEAK __NO_RETURN void boot_platform_error_state(uint32_t error)
238238
{
239239
FIH_PANIC;
240+
__builtin_unreachable();
240241
}
241242

242243
__WEAK int boot_platform_pre_load(uint32_t image_id)

0 commit comments

Comments
 (0)