1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:28:11 +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:
Andreas Kling 2019-02-15 12:30:48 +01:00
parent fbcc8ab840
commit 022f7790db
34 changed files with 99 additions and 124 deletions

View file

@ -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();