From: Heinrich Schuchardt Date: Mon, 1 Feb 2021 00:24:10 +0000 (+0100) Subject: sandbox: mark os_abort() as noreturn X-Git-Tag: v2021.10~331^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c30a7093e81be0dbec963b6b347f678630c2eb8d;p=platform%2Fkernel%2Fu-boot.git sandbox: mark os_abort() as noreturn gcc -fanalyzer needs the information that a function does not return to provide accurate information. os_abort() does not return. Mark it accordingly. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- diff --git a/include/os.h b/include/os.h index e192e32..65bcb23 100644 --- a/include/os.h +++ b/include/os.h @@ -341,7 +341,7 @@ void os_localtime(struct rtc_time *rt); /** * os_abort() - raise SIGABRT to exit sandbox (e.g. to debugger) */ -void os_abort(void); +void os_abort(void) __attribute__((noreturn)); /** * os_mprotect_allow() - Remove write-protection on a region of memory