Ensure assert_fail and abort have noreturn attribute

This commit is contained in:
Jeremy Soller
2023-03-10 11:23:56 -07:00
parent 334e33cfde
commit e7b70fdb93
9 changed files with 275 additions and 112 deletions
-9
View File
@@ -3,12 +3,3 @@ double strtod(const char *nptr, char **endptr);
long double strtold(const char *nptr, char **endptr) {
return (long double)strtod(nptr, endptr);
}
// manually define detailed abort function
void __abort(const char *func, const char *file, int line);
// backup definition of abort for programs that link it directly
void abort(void) {
// call detailed abort function
__abort(__func__, __FILE__, __LINE__);
}