From 62779d80fb85de470823a8ff2902218a9a5e715e Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 9 Jan 2011 21:39:46 +0000 Subject: [PATCH] Add missing __dead2 to __assert(). __assert() is called when an assertion fails. After printing an error message, it will call abort(). abort() never returns, hence it has the __dead2 attribute. Also add this attribute to __assert(). MFC after: 3 weeks --- include/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/assert.h b/include/assert.h index d5cfda603791..5621f8cac7e2 100644 --- a/include/assert.h +++ b/include/assert.h @@ -58,6 +58,6 @@ #ifndef _ASSERT_H_ #define _ASSERT_H_ __BEGIN_DECLS -void __assert(const char *, const char *, int, const char *); +void __assert(const char *, const char *, int, const char *) __dead2; __END_DECLS #endif /* !_ASSERT_H_ */