From 620f2dca70f68748c78e9caa634606a56e8b57b4 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 13:00:19 -0500 Subject: include proper standard and safety checks --- src/assert/assert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/assert/assert.c') diff --git a/src/assert/assert.c b/src/assert/assert.c index 2a5551a4..65beff36 100644 --- a/src/assert/assert.c +++ b/src/assert/assert.c @@ -1,13 +1,13 @@ #include #include "stdlib/_stdlib.h" -_Noreturn void assert(int exp) +void assert() { - (void)exp; __stdlib.constraint_handler("Undefined Behavior: The assert() macro has been suppressed to access an actual function", NULL, 0); abort(); } /* +SIGNAL_SAFE(0) STDC(0) */ -- cgit v1.2.1