summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/ssp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibC/ssp.cpp')
-rw-r--r--Userland/Libraries/LibC/ssp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/ssp.cpp b/Userland/Libraries/LibC/ssp.cpp
index 2937c5da3e..dbc108bd6e 100644
--- a/Userland/Libraries/LibC/ssp.cpp
+++ b/Userland/Libraries/LibC/ssp.cpp
@@ -20,7 +20,7 @@ extern "C" {
extern u32 __stack_chk_guard;
u32 __stack_chk_guard = (u32)0xc6c7c8c9;
-[[noreturn]] void __stack_chk_fail()
+__attribute__((noreturn)) void __stack_chk_fail()
{
dbgln("Error: USERSPACE({}) Stack protector failure, stack smashing detected!", getpid());
if (__stdio_is_initialized)
@@ -28,7 +28,7 @@ u32 __stack_chk_guard = (u32)0xc6c7c8c9;
abort();
}
-[[noreturn]] void __stack_chk_fail_local()
+__attribute__((noreturn)) void __stack_chk_fail_local()
{
__stack_chk_fail();
}