From 6993024aca08b408cba4c99eee4f9112837edb5c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 23 Oct 2024 10:24:07 +0000 Subject: [PATCH] cli: Mark the assertion function to not return Signed-off-by: Michael Tremer --- src/cli/lib/assert.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/lib/assert.h b/src/cli/lib/assert.h index 39d1e753e..9133d0d2f 100644 --- a/src/cli/lib/assert.h +++ b/src/cli/lib/assert.h @@ -21,7 +21,8 @@ #ifndef PAKFIRE_CLI_ASSERT_H #define PAKFIRE_CLI_ASSERT_H -void __assert_unreachable(const char* file, const char* function, unsigned int line); +void __assert_unreachable(const char* file, const char* function, unsigned int line) + __attribute__((__noreturn__)); #define assert_unreachable() \ __assert_unreachable(__FILE__, __FUNCTION__, __LINE__) -- 2.39.5