mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Mark fatalSimple with __attribute__((noreturn))
This commit is contained in:
parent
e836ee7bb9
commit
508a87ea5d
@ -1 +1 @@
|
||||
void fatalSimple(Result err);
|
||||
__attribute__((noreturn)) void fatalSimple(Result err);
|
||||
|
@ -36,4 +36,5 @@ void fatalSimple(Result err) {
|
||||
}
|
||||
|
||||
((void(*)())0xBADC0DE)();
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
@ -13,10 +13,8 @@ extern u8 __tls_start[];
|
||||
|
||||
static struct _reent* __libnx_get_reent() {
|
||||
ThreadVars* tv = getThreadVars();
|
||||
if (tv->magic != THREADVARS_MAGIC) {
|
||||
if (tv->magic != THREADVARS_MAGIC)
|
||||
fatalSimple(MAKERESULT(MODULE_LIBNX, LIBNX_BADREENT));
|
||||
for (;;);
|
||||
}
|
||||
return tv->reent;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user