diff options
author | ed <ed@FreeBSD.org> | 2011-01-09 21:39:46 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-01-09 21:39:46 +0000 |
commit | 0cf1767efcfa9867d14965198bcb4700ac15c897 (patch) | |
tree | af1c878027b33e59523201c91e65d5b73b9c949c | |
parent | 2a782244a979d547efd9b9a664b03682ee43762b (diff) | |
download | FreeBSD-src-0cf1767efcfa9867d14965198bcb4700ac15c897.zip FreeBSD-src-0cf1767efcfa9867d14965198bcb4700ac15c897.tar.gz |
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
-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 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_ */ |