From 0cf1767efcfa9867d14965198bcb4700ac15c897 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 9 Jan 2011 21:39:46 +0000 Subject: 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(-) (limited to 'include') diff --git a/include/assert.h b/include/assert.h index d5cfda6..5621f8c 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_ */ -- cgit v1.1