mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Use modern C++ attributes instead of __attribute__ voodoo.
This is quite nice, although I wish [[gnu::always_inline]] implied inline. Also "gnu::" is kind of a wart, but whatcha gonna do.
This commit is contained in:
@@ -44,8 +44,7 @@ NullDevice* dev_null;
|
||||
VFS* vfs;
|
||||
|
||||
#ifdef STRESS_TEST_SPAWNING
|
||||
static void spawn_stress() NORETURN;
|
||||
static void spawn_stress()
|
||||
[[noreturn]] static void spawn_stress()
|
||||
{
|
||||
dword last_sum_alloc = sum_alloc;
|
||||
|
||||
@@ -62,8 +61,7 @@ static void spawn_stress()
|
||||
}
|
||||
#endif
|
||||
|
||||
static void init_stage2() NORETURN;
|
||||
static void init_stage2()
|
||||
[[noreturn]] static void init_stage2()
|
||||
{
|
||||
Syscall::initialize();
|
||||
|
||||
@@ -135,8 +133,7 @@ static void init_stage2()
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
void init() NORETURN;
|
||||
void init()
|
||||
[[noreturn]] void init()
|
||||
{
|
||||
cli();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user