musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/assert.h
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013年01月01日 07:59:11 +0100
committerrofl0r <retnyg@gmx.net>2013年01月04日 20:36:34 +0100
commit2c1f8fd5da3306fd7c8a2267467e44eb61f12dd4 (patch)
tree9b10c915f1cb4ae8e76e285b5330f4236ac5bf5d /include/assert.h
parent5d893e50b063e67360dabb120b547ba52bfc5b87 (diff)
downloadmusl-2c1f8fd5da3306fd7c8a2267467e44eb61f12dd4.tar.gz
__assert_fail(): remove _Noreturn, to get proper stacktraces
for _Noreturn functions, gcc generates code that trashes the stack frame, and so it makes it impossible to inspect the causes of an assert error in gdb. abort() is not affected (i have not yet investigated why).
Diffstat (limited to 'include/assert.h')
-rw-r--r--include/assert.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/assert.h b/include/assert.h
index c64d3e52..ab745db1 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -12,7 +12,7 @@
extern "C" {
#endif
-_Noreturn void __assert_fail (const char *, const char *, int, const char *);
+void __assert_fail (const char *, const char *, int, const char *);
#ifdef __cplusplus
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月03日 17:12:18 +0000

AltStyle によって変換されたページ (->オリジナル) /