summaryrefslogtreecommitdiffstats
path: root/include/assert.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-01-09 21:39:46 +0000
committered <ed@FreeBSD.org>2011-01-09 21:39:46 +0000
commit0cf1767efcfa9867d14965198bcb4700ac15c897 (patch)
treeaf1c878027b33e59523201c91e65d5b73b9c949c /include/assert.h
parent2a782244a979d547efd9b9a664b03682ee43762b (diff)
downloadFreeBSD-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
Diffstat (limited to 'include/assert.h')
-rw-r--r--include/assert.h2
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_ */
OpenPOWER on IntegriCloud