mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-23 06:41:36 +02:00
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 <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6424fba1bc
commit
c30a7093e8
@ -341,7 +341,7 @@ void os_localtime(struct rtc_time *rt);
|
|||||||
/**
|
/**
|
||||||
* os_abort() - raise SIGABRT to exit sandbox (e.g. to debugger)
|
* 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
|
* os_mprotect_allow() - Remove write-protection on a region of memory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user