From 06376d5859a91cf397cdc66d5b62a65f59ba4fd9 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Tue, 17 Jan 2017 17:08:41 +0000 Subject: [PATCH] libc.h: mark _assert as noreturn Indeed the `assert` macro calls the _assert function only when the assertion failed. --- sys/include/libc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/libc.h b/sys/include/libc.h index 5206123..aa3938b 100644 --- a/sys/include/libc.h +++ b/sys/include/libc.h @@ -360,7 +360,7 @@ enum PNGROUP = 2, }; -extern void _assert(const char*); +extern void _assert(const char*) __attribute__ ((noreturn)); extern int abs(int); extern int atexit(void(*)(void)); extern void atexitdont(void(*)(void));